Skip to content

Commit 68c9bdd

Browse files
mitsuhikoShekhinah Memmel
authored and
Shekhinah Memmel
committed
Fix some commands not showing names in palette (helix-editor#4223)
1 parent fc8e2a0 commit 68c9bdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helix-term/src/commands.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2466,11 +2466,11 @@ impl ui::menu::Item for MappableCommand {
24662466
match self {
24672467
MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
24682468
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2469-
None => doc.as_str().into(),
2469+
None => format!("{} [{}]", doc, name).into(),
24702470
},
24712471
MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
24722472
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2473-
None => (*doc).into(),
2473+
None => format!("{} [{}]", doc, name).into(),
24742474
},
24752475
}
24762476
}

0 commit comments

Comments
 (0)