mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-22 21:24:49 +02:00
Merge pull request #81 from ClementTsang/fix_resize_scroll
Fix resizing breaking scrolling
This commit is contained in:
commit
d0bf247291
@ -147,6 +147,8 @@ impl Painter {
|
|||||||
self.width = current_width;
|
self.width = current_width;
|
||||||
} else if self.height != current_height || self.width != current_width {
|
} else if self.height != current_height || self.width != current_width {
|
||||||
app_state.is_resized = true;
|
app_state.is_resized = true;
|
||||||
|
self.height = current_height;
|
||||||
|
self.width = current_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
terminal.autoresize()?;
|
terminal.autoresize()?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user