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.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/widgets/tui_help.rs b/src/ui/widgets/tui_help.rs
index 0ccb51b..7328845 100644
--- a/src/ui/widgets/tui_help.rs
+++ b/src/ui/widgets/tui_help.rs
@@ -59,13 +59,12 @@ impl<'a> Widget for TuiHelp<'a> {
Constraint::Length((width as f32 * 0.50) as u16),
Constraint::Length((width as f32 * 0.38) as u16),
];
- let table_widget = Table::new(keymap)
+ let table_widget = Table::new(keymap, widths)
.header(
Row::new(vec!["Key", "Command", "Description"])
.style(*HEADER_STYLE)
.bottom_margin(1),
)
- .widths(&widths)
.column_spacing(1);
table_widget.render(keybindings_area, &mut keybindings_buffer);