From 1eae41468b292506a7afdfd8dc4a2d5f8d1ea7a5 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 17 Mar 2020 11:06:33 +0100 Subject: [PATCH] input: interpret a LF as a CR, even though it should not occur in a paste This is a workaround for the non-standard Alacritty terminal. --- src/nano.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nano.c b/src/nano.c index d3a32325..5be474da 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1469,7 +1469,7 @@ void suck_up_input_and_paste_it(void) while (bracketed_paste) { int input = get_kbinput(edit, BLIND); - if (input == CR_CODE) { + if (input == CR_CODE || input == 0x0A) { line->next = make_new_node(line); line = line->next; line->data = copy_of(""); -- 2.25.1