mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
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.
This commit is contained in:
@@ -421,7 +421,6 @@ fn ctrl_to_symbol(buf: &mut WString, c: char) {
|
|||||||
let c = u8::try_from(c).unwrap();
|
let c = u8::try_from(c).unwrap();
|
||||||
let symbolic_name = match c {
|
let symbolic_name = match c {
|
||||||
9 => L!("\\t"),
|
9 => L!("\\t"),
|
||||||
10 => L!("\\n"),
|
|
||||||
13 => L!("\\r"),
|
13 => L!("\\r"),
|
||||||
27 => L!("\\e"),
|
27 => L!("\\e"),
|
||||||
_ => return sprintf!(=> buf, "\\x%02x", c),
|
_ => return sprintf!(=> buf, "\\x%02x", c),
|
||||||
|
|||||||
Reference in New Issue
Block a user