diff --git a/src/command.c b/src/command.c
index a11a8dca9ce220a00e9b69fcf9dbb4cf950e8ad1..e3663339ee9837436bbfec350b4690024c32ba69 100644 (file)
--- a/src/command.c
+++ b/src/command.c
int key;
key = wgetch(stdscr);
- if (key == ERR)
+ if (key == ERR || key == '\0')
return CMD_NONE;
#ifdef HAVE_GETMOUSE