keyboard: reshuffle some lines to avoid an empty while

master
Benno Schulenberg 2016-04-16 11:57:05 +02:00
parent 0bffd99dcb
commit a101b30fa8
1 changed files with 6 additions and 6 deletions

View File

@ -337,13 +337,13 @@ int parse_kbinput(WINDOW *win)
func_key = FALSE;
/* Read in a character. */
if (nodelay_mode) {
kbinput = get_input(win, 1);
if (kbinput == NULL && nodelay_mode)
return 0;
while (kbinput == NULL)
kbinput = get_input(win, 1);
if (kbinput == 0)
return 0;
} else
while ((kbinput = get_input(win, 1)) == NULL)
;
switch (*kbinput) {
case ERR: