summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 97ddb35d..30a4a99f 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -639,7 +639,8 @@ igetkey()
mode = last = 0;
while (1) {
- ch = igetch();
+ if( !(ch = igetch()) )
+ continue;
if (mode == 0) {
if (ch == KEY_ESC)
mode = 1;