mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-09 01:44:32 +03:00
prompt: at Yes-No, do not treat a screen resize as an invalid keystroke
Commit 12cf1c99 added a beep() for every invalid keystroke at the Yes-No prompt, but overlooked that KEY_WINCH is not invalid. This fixes https://savannah.gnu.org/bugs/?58422. Bug existed since version 4.8, commit 12cf1c99.
This commit is contained in:
parent
c9482bcd2b
commit
b72f3b10ba
@ -678,6 +678,9 @@ int do_yesno_prompt(bool all, const char *msg)
|
|||||||
kbinput = get_kbinput(bottomwin, !all);
|
kbinput = get_kbinput(bottomwin, !all);
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
|
if (kbinput == KEY_WINCH)
|
||||||
|
continue;
|
||||||
|
|
||||||
/* Accept the first character of an external paste. */
|
/* Accept the first character of an external paste. */
|
||||||
if (bracketed_paste && kbinput == BRACKETED_PASTE_MARKER)
|
if (bracketed_paste && kbinput == BRACKETED_PASTE_MARKER)
|
||||||
kbinput = get_kbinput(bottomwin, BLIND);
|
kbinput = get_kbinput(bottomwin, BLIND);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user