Skip to content

Commit

Permalink
Fix build after latest rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
MattCheely committed Oct 22, 2023
1 parent a4a0189 commit 3e7a390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@ impl<'de> serde::de::Visitor<'de> for KeyTrieVisitor {
Err(serde::de::Error::custom("custom labels are only available for typable commands (the ones starting with ':')"))
}
Some(MappableCommand::Typable { name, args, .. }) if !label.is_empty() => {
Ok(KeyTrie::Leaf(MappableCommand::Typable {
Ok(KeyTrie::MappableCommand(MappableCommand::Typable {
name,
args,
doc: label.to_string(),
}))
}
Some(command) => Ok(KeyTrie::Leaf(command)),
Some(command) => Ok(KeyTrie::MappableCommand(command)),
}
}
}
Expand Down

0 comments on commit 3e7a390

Please sign in to comment.