on master help sign in
Fix some commands not showing names in palette (#4223)
7f75458Armin Ronacher
helix-term/src/commands.rs+2−2
@@ -2426,11 +2426,11 @@ impl ui::menu::Item for MappableCommand {
2426 match self {
2426 match self {
2427 MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
2427 MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
2428 Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2428 Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2429− None => doc.as_str().into(),
2429+ None => format!("{} [{}]", doc, name).into(),
2430 },
2430 },
2431 MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
2431 MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
2432 Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2432 Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2433− None => (*doc).into(),
2433+ None => format!("{} [{}]", doc, name).into(),
2434 },
2434 },
2435 }
2435 }
2436 }
2436 }