diff options
author | gibbz00 | 2023-05-29 19:42:24 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-06-07 01:11:13 +0000 |
commit | 39773e48d32edd76d98b7b25224db2b6d24937be (patch) | |
tree | 4172bef7219f6e153dcf2d8f10703f62131de0ce /helix-term/src | |
parent | d20c1632a7331876215db59410361f0605f2f3ed (diff) |
Remove superfluous command description pruning for keymap infobox:
Exist under the wrong (possibly just outdated) assumption that command
descriptions are written with their `KeyTrie` name prefixed
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/keymap.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 79d6b46a..f5626ee8 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -102,13 +102,6 @@ impl KeyTrieNode { .position(|&k| k == *keys.iter().next().unwrap()) .unwrap() }); - let prefix = format!("{} ", self.name()); - if body.iter().all(|(desc, _)| desc.starts_with(&prefix)) { - body = body - .into_iter() - .map(|(desc, keys)| (desc.strip_prefix(&prefix).unwrap(), keys)) - .collect(); - } Info::from_keymap(self.name(), body) } } |