aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorArmin Ronacher2022-10-12 14:02:10 +0000
committerGitHub2022-10-12 14:02:10 +0000
commit7f75458e6f29f2dc0717557a1072b70deee27acb (patch)
tree3c682f7bf55e507f06f4093c6a6597a615c2308b /helix-term/src
parenta24fae3b3cca81a4716bc92915005cd424ccf23b (diff)
Fix some commands not showing names in palette (#4223)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 474006e3..dcaab222 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -2426,11 +2426,11 @@ impl ui::menu::Item for MappableCommand {
match self {
MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
- None => doc.as_str().into(),
+ None => format!("{} [{}]", doc, name).into(),
},
MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
- None => (*doc).into(),
+ None => format!("{} [{}]", doc, name).into(),
},
}
}