fix crash

This commit is contained in:
cjdenio committed 2026-09-09 18:33:46 -05:00
1 parent 6109f70a45
commit a87433ce9e
1 file changed
+4
+4
View File
@@ -349,6 +349,10 @@ func (state *State) LoadSaveFile(f []byte) error {
} }
func (state *State) HandleInput(buffer []byte) (exited bool) { func (state *State) HandleInput(buffer []byte) (exited bool) {
if len(buffer) == 0 {
return false
}
state.LastKeySequence = fmt.Sprintf("%v", buffer) state.LastKeySequence = fmt.Sprintf("%v", buffer)
if buffer[0] == 3 { if buffer[0] == 3 {