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
commit39773e48d32edd76d98b7b25224db2b6d24937be
authorgibbz00 <gabrielhansson00@gmail.com>
dateMon 29 May 2023, 21:42 (3 years ago)
parentd20c163
helix-term/src/keymap.rs−7
@@ -102,13 +102,6 @@ impl KeyTrieNode {
102102 .position(|&k| k == *keys.iter().next().unwrap())
103103 .unwrap()
104104 });
105− let prefix = format!("{} ", self.name());
106− if body.iter().all(|(desc, _)| desc.starts_with(&prefix)) {
107− body = body
108− .into_iter()
109− .map(|(desc, keys)| (desc.strip_prefix(&prefix).unwrap(), keys))
110− .collect();
111− }
112105 Info::from_keymap(self.name(), body)
113106 }
114107}