mirror of
https://github.com/cjdenio/crossword.git
synced 2026-10-03 11:06:19 +00:00
fix crash
This commit is contained in:
1 file changed
+4
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user