input: disallow bracketed pastes when in view mode
When in view mode, nothing shouldbe allowed to be entered into (or deleted from) the buffer. This fixes https://savannah.gnu.org/bugs/?63616. Reported-by: Timothy Liu <liuxf19@163.com> Bug existed since version 4.8, commit 0e6d693d.
This commit is contained in:
parent
f8ec08a928
commit
264f305d94
@ -1443,6 +1443,9 @@ void suck_up_input_and_paste_it(void)
|
|||||||
beep();
|
beep();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ISSET(VIEW_MODE))
|
||||||
|
print_view_warning();
|
||||||
|
else
|
||||||
paste_text();
|
paste_text();
|
||||||
|
|
||||||
free_lines(cutbuffer);
|
free_lines(cutbuffer);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user