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
Benno Schulenberg 2020-01-24 19:20:21 +01:00
parent d764d7094f
commit a78da18aa4
2 changed files with 12 additions and 1 deletions

View File

@ -145,7 +145,12 @@ char *do_browser(char *path)
continue; continue;
} }
#endif /* ENABLE_MOUSE */ #endif /* ENABLE_MOUSE */
#ifndef NANO_TINY
if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) {
beep();
continue;
}
#endif
func = parse_browser_input(&kbinput); func = parse_browser_input(&kbinput);
if (func == total_refresh) { if (func == total_refresh) {

View File

@ -187,6 +187,12 @@ void show_help(void)
kbinput = get_kbinput(edit, didfind == 1 || ISSET(SHOW_CURSOR)); kbinput = get_kbinput(edit, didfind == 1 || ISSET(SHOW_CURSOR));
didfind = 0; didfind = 0;
#ifndef NANO_TINY
if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) {
beep();
continue;
}
#endif
func = parse_help_input(&kbinput); func = parse_help_input(&kbinput);
if (func == total_refresh) { if (func == total_refresh) {