From 01801d1209123e4ff9301abb646591c48463f7a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Fri, 3 Feb 2012 19:43:46 +0100 Subject: [PATCH] command: don't crash on Ctrl-Space --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index a11a8dc..e366333 100644 --- a/src/command.c +++ b/src/command.c @@ -445,7 +445,7 @@ get_keyboard_command(void) int key; key = wgetch(stdscr); - if (key == ERR) + if (key == ERR || key == '\0') return CMD_NONE; #ifdef HAVE_GETMOUSE -- 2.30.2