Commit a101b30f authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

keyboard: reshuffle some lines to avoid an empty while

No related merge requests found
Showing with 6 additions and 6 deletions
+6 -6
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment