mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 13:24:01 +08:00
Fix crash in ctrl_to_symbol
Array starts at 0, goes up to 27, that's 28 entries... *BUT* we also need the catch-all entry after, so it's 29. To be honest there's got to be a better way to write this.
This commit is contained in:
parent
9903eb4c76
commit
e3196446fa
|
@ -418,7 +418,7 @@ fn ctrl_to_symbol(buf: &mut WString, c: char) {
|
|||
// 2. key names that are given as raw escape sequence (\e123); those we want to display
|
||||
// similar to how they are given.
|
||||
|
||||
let ctrl_symbolic_names: [&wstr; 28] = {
|
||||
let ctrl_symbolic_names: [&wstr; 29] = {
|
||||
std::array::from_fn(|i| match i {
|
||||
8 => L!("\\b"),
|
||||
9 => L!("\\t"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user