nano

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

commit b561c386c37136f5f62888df66634217b9ccfe07
parent a374dd035985076a899252749eb1f75121a8ae38
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 21 Aug 2022 10:45:49 +0200

tweaks: discard a bracketed paste in the browser more efficiently

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

diff --git a/src/browser.c b/src/browser.c @@ -505,7 +505,9 @@ char *browse(char *path) } #endif /* ENABLE_MOUSE */ #ifndef NANO_TINY - if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) { + while (bracketed_paste) + kbinput = get_kbinput(midwin, BLIND); + if (kbinput == BRACKETED_PASTE_MARKER) { beep(); continue; }