aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helix-term/src/keymap.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index f5626ee8..b5f71135 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -255,15 +255,12 @@ impl Keymap {
// recursively visit all nodes in keymap
fn map_node(cmd_map: &mut ReverseKeymap, node: &KeyTrie, keys: &mut Vec<KeyEvent>) {
match node {
- KeyTrie::MappableCommand(cmd) => match cmd {
- MappableCommand::Typable { name, .. } => {
+ KeyTrie::MappableCommand(cmd) => {
+ let name = cmd.name();
+ if name != "no_op" {
cmd_map.entry(name.into()).or_default().push(keys.clone())
}
- MappableCommand::Static { name, .. } => cmd_map
- .entry(name.to_string())
- .or_default()
- .push(keys.clone()),
- },
+ }
KeyTrie::Node(next) => {
for (key, trie) in &next.map {
keys.push(*key);