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