summaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/tui_help.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widgets/tui_help.rs')
-rw-r--r--src/ui/widgets/tui_help.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ui/widgets/tui_help.rs b/src/ui/widgets/tui_help.rs
index 7616d09..84f0c3d 100644
--- a/src/ui/widgets/tui_help.rs
+++ b/src/ui/widgets/tui_help.rs
@@ -124,9 +124,14 @@ pub fn get_raw_keymap_table<'a>(
for (event, bind) in keymap.iter() {
let key = key_event_to_string(event);
let (command, comment) = match bind {
- CommandKeybind::SimpleKeybind { command, .. } => {
- (format!("{}", command), command.comment())
- }
+ CommandKeybind::SimpleKeybind {
+ command,
+ description: None,
+ } => (format!("{}", command), command.comment()),
+ CommandKeybind::SimpleKeybind {
+ command,
+ description: Some(desc),
+ } => (format!("{}", command), desc.as_str()),
CommandKeybind::CompositeKeybind(sub_keymap) => {
let mut sub_rows = get_raw_keymap_table(sub_keymap, "", sort_by);
for _ in 0..sub_rows.len() {