tab switching doesn't redraw box lines in splits

closes #32
embed
Manos Pitsidianakis 2018-08-15 15:36:51 +03:00
parent f033463db9
commit d43d8d282c
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 3 additions and 0 deletions

View File

@ -64,7 +64,9 @@ impl Component for HSplit {
for i in get_x(upper_left)..=get_x(bottom_right) { for i in get_x(upper_left)..=get_x(bottom_right) {
grid[(i, mid)].set_ch('─'); grid[(i, mid)].set_ch('─');
} }
context.dirty_areas.push_back(((get_x(upper_left), mid), (get_x(bottom_right), mid)));
} }
self.top.component.draw( self.top.component.draw(
grid, 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 self.left
.component .component