From c4ad203b93ce309015c7beb60d6cb1f365aa6470 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 12 Oct 2022 16:02:10 +0200 Subject: [PATCH] Fix some commands not showing names in palette (#4223) --- helix-term/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index f90a2689bf2d3..d40133b9662db 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2433,11 +2433,11 @@ impl ui::menu::Item for MappableCommand { match self { MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) { Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(), - None => doc.as_str().into(), + None => format!("{} [{}]", doc, name).into(), }, MappableCommand::Static { doc, name, .. } => match keymap.get(*name) { Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(), - None => (*doc).into(), + None => format!("{} [{}]", doc, name).into(), }, } }