diff --git a/src/winio.c b/src/winio.c index aa077818267fa488a3591752f5d95d333906758f..d74945768c62816fbd11ee7344264748ae8e5acf 100644 --- a/src/winio.c +++ b/src/winio.c @@ -141,8 +141,10 @@ void get_key_buffer(WINDOW *win) input = wgetch(win); #ifndef NANO_TINY - if (the_window_resized()) + if (the_window_resized()) { + ungetch(input); input = KEY_WINCH; + } #endif if (input == ERR && nodelay_mode)