From c070013d4fd7ddd666691922ebe51d0712f105ef Mon Sep 17 00:00:00 2001 From: Matthew Cheely Date: Sun, 22 Oct 2023 13:16:40 +1300 Subject: [PATCH] Fix build after latest rebase --- helix-term/src/keymap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 0ec9b0f6c..df924d15a 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -224,13 +224,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)), } } }