diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2018-08-15 15:36:51 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:29 +0300 |
commit | d43d8d282c7fca96c81c8be371f572ef93d1694e (patch) | |
tree | 91f6475e00ed1ba8253783b4923e9c2ec116f953 /ui | |
parent | f033463db90fcdd441d5641d9dfb40e2b64b2410 (diff) |
tab switching doesn't redraw box lines in splits
closes #32
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/components/utilities.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/src/components/utilities.rs b/ui/src/components/utilities.rs index 52fc0ee5..f8db0f45 100644 --- a/ui/src/components/utilities.rs +++ b/ui/src/components/utilities.rs @@ -64,7 +64,9 @@ impl Component for HSplit { for i in get_x(upper_left)..=get_x(bottom_right) { grid[(i, mid)].set_ch('─'); } + context.dirty_areas.push_back(((get_x(upper_left), mid), (get_x(bottom_right), mid))); } + self.top.component.draw( grid, ( @@ -158,6 +160,7 @@ impl Component for VSplit { _ => {} } } + context.dirty_areas.push_back(((mid, get_y(upper_left)), (mid, get_y(bottom_right)))); } self.left .component |