Skip to content

Commit

Permalink
Fix some commands not showing names in palette (helix-editor#4223)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko authored and Shekhinah Memmel committed Dec 11, 2022
1 parent fc8e2a0 commit 68c9bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2466,11 +2466,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(),
},
}
}
Expand Down

0 comments on commit 68c9bdd

Please sign in to comment.