diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/widgets/tui_view.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widgets/tui_view.rs b/src/ui/widgets/tui_view.rs index 46af0b3..7cfe223 100644 --- a/src/ui/widgets/tui_view.rs +++ b/src/ui/widgets/tui_view.rs @@ -26,14 +26,14 @@ impl<'a> TuiView<'a> { impl<'a> Widget for TuiView<'a> { fn draw(&mut self, area: Rect, buf: &mut Buffer) { + let f_size = area; + let curr_tab = self.context.curr_tab_ref(); let curr_list = curr_tab.curr_list_ref(); let parent_list = curr_tab.parent_list_ref(); let child_list = curr_tab.child_list_ref(); - let f_size = area; - let constraints = match child_list { Some(_) => DEFAULT_LAYOUT, None => NO_PREVIEW_LAYOUT, |