summary refs log tree commit diff homepage
path: root/2048.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--2048.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/2048.c b/2048.c
index 9b8a3a4..fe17a30 100644
--- a/2048.c
+++ b/2048.c
@@ -240,6 +240,7 @@ static bool input(void) {
 		break; case 'k': case KEY_UP: if (up()) spawn();
 		break; case 'l': case KEY_RIGHT: if (right()) spawn();
 		break; case 'q': return false;
+		break; case ERR: exit(EXIT_FAILURE);
 	}
 	return true;
 }