diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-09-05 17:04:05 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-09-05 17:04:05 -0400 |
commit | 30111d20afc16c31a74afb7cf134f4ad8f1ade18 (patch) | |
tree | e956fb34eda7cbaa081a1acfaaea51415b6e1bb4 /src/ui | |
parent | 35b36cfe5e2053a53656d3e1b4ba54a10d1a1618 (diff) |
add numbered_command to default keymap
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/views/tui_folder_view.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/views/tui_folder_view.rs b/src/ui/views/tui_folder_view.rs index 260c8fa..d2eabf4 100644 --- a/src/ui/views/tui_folder_view.rs +++ b/src/ui/views/tui_folder_view.rs @@ -88,7 +88,7 @@ impl<'a> TuiFolderView<'a> { Rect { y: area.top() + 1, height: area.bottom() - 2, - ..area.clone() + ..*area } } @@ -149,8 +149,7 @@ impl<'a> Widget for TuiFolderView<'a> { let area = Self::folder_area(&area); TuiFolderViewBorders::new(constraints).render(area, buf); - let layout = calculate_layout_with_borders(area, constraints); - layout + calculate_layout_with_borders(area, constraints) } else { let area = Self::folder_area(&area); calculate_layout(area, constraints) |