Skip to content

Commit 7f75458

Browse files
authored
Fix some commands not showing names in palette (#4223)
1 parent a24fae3 commit 7f75458

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
@@ -2426,11 +2426,11 @@ impl ui::menu::Item for MappableCommand {
24262426
match self {
24272427
MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
24282428
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2429-
None => doc.as_str().into(),
2429+
None => format!("{} [{}]", doc, name).into(),
24302430
},
24312431
MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
24322432
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2433-
None => (*doc).into(),
2433+
None => format!("{} [{}]", doc, name).into(),
24342434
},
24352435
}
24362436
}

0 commit comments

Comments
 (0)