Code

command: don't crash on Ctrl-Space
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Fri, 3 Feb 2012 18:43:46 +0000 (19:43 +0100)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Fri, 3 Feb 2012 18:45:23 +0000 (19:45 +0100)
src/command.c

index a11a8dca9ce220a00e9b69fcf9dbb4cf950e8ad1..e3663339ee9837436bbfec350b4690024c32ba69 100644 (file)
@@ -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