mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03: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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user