Skip to content

Commit c4ad203

Browse files
mitsuhikopathwave
authored andcommitted
Fix some commands not showing names in palette (helix-editor#4223)
1 parent ba6bbb0 commit c4ad203

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
@@ -2433,11 +2433,11 @@ impl ui::menu::Item for MappableCommand {
24332433
match self {
24342434
MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
24352435
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2436-
None => doc.as_str().into(),
2436+
None => format!("{} [{}]", doc, name).into(),
24372437
},
24382438
MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
24392439
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2440-
None => (*doc).into(),
2440+
None => format!("{} [{}]", doc, name).into(),
24412441
},
24422442
}
24432443
}

0 commit comments

Comments
 (0)