aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 09a63db..a2599d7 100644
--- a/noice.c
+++ b/noice.c
@@ -359,7 +359,7 @@ readln(void)
getyx(stdscr, y, x);
x0 = x;
- while (c = getch()) {
+ while ((c = getch()) != ERR) {
if (c == KEY_ENTER || c == '\r')
break;
if (c == KEY_BACKSPACE) {