tweaks: discard a bracketed paste in the help viewer with fewer beeps

The same change was made for the file browser two years ago,
in commit b561c386.
This commit is contained in:
Benno Schulenberg 2024-07-06 10:53:15 +02:00
parent d824c4e633
commit e5d36de24c
1 changed files with 3 additions and 1 deletions

View File

@ -477,7 +477,9 @@ void show_help(void)
#ifndef NANO_TINY
spotlighted = FALSE;
if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) {
while (bracketed_paste)
kbinput = get_kbinput(midwin, BLIND);
if (kbinput == BRACKETED_PASTE_MARKER) {
beep();
continue;
}