nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit e5d36de24c0376a0073f476011e6caf857fcd8b5
parent d824c4e63365b80f8e9aaa6d108165f0c88015e8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat,  6 Jul 2024 10:53:15 +0200

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.

Diffstat:
Msrc/help.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/help.c b/src/help.c @@ -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; }