Commit 1d7c1776 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

input: don't drop a keystroke on the floor when the terminal resizes

This fixes the first part of https://savannah.gnu.org/bugs/?48331

.
Reported-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 2ae490cd
Showing with 3 additions and 1 deletion
+3 -1
......@@ -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)
......
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