input: ignore bracketed pastes in help viewer and file browser
This partially fixes https://savannah.gnu.org/bugs/?57623. Reported-by: Brand Huntsman <alpha@qzx.com>master
parent
d764d7094f
commit
a78da18aa4
|
@ -145,7 +145,12 @@ char *do_browser(char *path)
|
|||
continue;
|
||||
}
|
||||
#endif /* ENABLE_MOUSE */
|
||||
|
||||
#ifndef NANO_TINY
|
||||
if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) {
|
||||
beep();
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
func = parse_browser_input(&kbinput);
|
||||
|
||||
if (func == total_refresh) {
|
||||
|
|
|
@ -187,6 +187,12 @@ void show_help(void)
|
|||
kbinput = get_kbinput(edit, didfind == 1 || ISSET(SHOW_CURSOR));
|
||||
didfind = 0;
|
||||
|
||||
#ifndef NANO_TINY
|
||||
if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) {
|
||||
beep();
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
func = parse_help_input(&kbinput);
|
||||
|
||||
if (func == total_refresh) {
|
||||
|
|
Loading…
Reference in New Issue