mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
input: accommodate silly emulators that have LF instead of CR in a paste
Even though a user would never type ^J to start a new line, accept it as a synonym of <Enter> (^M) in a bracketed paste, because apparently bash accepts it as a synonym too. This works around https://savannah.gnu.org/bugs/?58010.
This commit is contained in:
parent
bc6645f753
commit
481529e865
@ -1469,7 +1469,7 @@ void suck_up_input_and_paste_it(void)
|
||||
while (bracketed_paste) {
|
||||
int input = get_kbinput(edit, BLIND);
|
||||
|
||||
if (input == '\r') {
|
||||
if (input == '\r' || input == '\n') {
|
||||
line->next = make_new_node(line);
|
||||
line = line->next;
|
||||
line->data = copy_of("");
|
||||
|
Loading…
Reference in New Issue
Block a user