on master help sign in
Fix some commands not showing names in palette (#4223)
commit7f75458e6f29f2dc0717557a1072b70deee27acb authorArmin Ronacher <armin.ronacher@active-4.com> dateWed 12 Oct 2022, 16:02 (4 years ago) parenta24fae3
1 file changed+2−2
helix-term/src/commands.rs+2−2
helix-term/src/commands.rs+2−2
@@ -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 }