diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-07 14:36:54 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-07 14:36:54 +0530 |
commit | f34ceeb91f41298278f4be62a053308946d41ea7 (patch) | |
tree | ef6b3077309ec7df5a2737231456168ce7265f71 /src/interactive/widgets/main.rs | |
parent | 88ec5d51980533a4942cf18fb60f525924dfb2bd (diff) |
First version of help line which tells what to do to delete things
Diffstat (limited to 'src/interactive/widgets/main.rs')
-rw-r--r-- | src/interactive/widgets/main.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/interactive/widgets/main.rs b/src/interactive/widgets/main.rs index 04675f9..c1c16ad 100644 --- a/src/interactive/widgets/main.rs +++ b/src/interactive/widgets/main.rs @@ -65,11 +65,13 @@ impl MainWindow { } }; - let regions = Layout::default() - .direction(Direction::Vertical) - .constraints([Length(1), Max(256), Length(1)].as_ref()) - .split(area); - let (header_area, entries_area, footer_area) = (regions[0], regions[1], regions[2]); + let (header_area, entries_area, footer_area) = { + let regions = Layout::default() + .direction(Direction::Vertical) + .constraints([Length(1), Max(256), Length(1)].as_ref()) + .split(area); + (regions[0], regions[1], regions[2]) + }; { let marked = self.mark_pane.as_ref().map(|p| p.marked()); let bg_color = match (marked.map_or(true, |m| m.is_empty()), state.focussed) { |