diff --git a/src/main.c b/src/main.c index a7dcea6..a9f4bdc 100644 --- a/src/main.c +++ b/src/main.c @@ -86,6 +86,7 @@ int input_handle(int wait) { return wait == 0 ? 1 : 0; nodelay(stdscr, wait?1:0); + errno = 0; while((ch = getch()) != ERR) { if(ch == KEY_RESIZE) { if(ncresize(min_rows, min_cols))