commit ce599b8e6bf44d089820b5b5558835e57f67db7b parent c6614067e4e47234c6e2602b6c963735135bd7ae Author: sin <sin@2f30.org> Date: Wed, 22 Oct 2014 16:30:27 +0100 Check getch() against ERR Diffstat:
M | noice.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) {