From 308ed62d83b4787df4e9f5003a2f2d4e99c7f000 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 23 Sep 2024 20:07:27 +0200 Subject: [PATCH] fish_key_reader: stop emitting \n for ctrl-j I guess it's nice to know that these two are the same but that info is not needed here, it just adds confusion. The user must have pressed ctrl-j if we get here, so echo that back. See the parent commit. --- src/key.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/key.rs b/src/key.rs index 207b4654f..71dfc4b54 100644 --- a/src/key.rs +++ b/src/key.rs @@ -421,7 +421,6 @@ fn ctrl_to_symbol(buf: &mut WString, c: char) { let c = u8::try_from(c).unwrap(); let symbolic_name = match c { 9 => L!("\\t"), - 10 => L!("\\n"), 13 => L!("\\r"), 27 => L!("\\e"), _ => return sprintf!(=> buf, "\\x%02x", c),