Resize check
This commit is contained in:
parent
557f3dd0f6
commit
7065fbe2c7
@ -839,8 +839,10 @@ impl RedrawEvents for State {
|
||||
fn on_resize(&mut self, columns: u64, rows: u64) -> RepaintMode {
|
||||
match self.resize_state.get() {
|
||||
ResizeState::NvimResizeTimer(..) => {
|
||||
if self.model.columns != columns as usize || self.model.rows != rows as usize {
|
||||
self.model = UiModel::new(rows, columns);
|
||||
}
|
||||
}
|
||||
ResizeState::Wait |
|
||||
ResizeState::NvimResizeRequest(..) => {
|
||||
if self.model.columns != columns as usize || self.model.rows != rows as usize {
|
||||
|
Loading…
Reference in New Issue
Block a user