aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-01 12:20:07 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-01 13:17:03 +0800
commit0f1b511f2302324684c3ed9ff586f51c2129694d (patch)
treec17ead138a088a45e6db7f29482ddc8a57c4c27e /src
parenta803bff89c89cc63e549a3c791fa07d91d1106c8 (diff)
downloadrneovim-0f1b511f2302324684c3ed9ff586f51c2129694d.tar.gz
rneovim-0f1b511f2302324684c3ed9ff586f51c2129694d.tar.bz2
rneovim-0f1b511f2302324684c3ed9ff586f51c2129694d.zip
fix(tui): redraw on SIGWINCH even if size didn't change
Diffstat (limited to 'src')
-rw-r--r--src/nvim/tui/tui.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 975ad375a0..b267027d02 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1529,12 +1529,11 @@ void tui_guess_size(TUIData *tui)
height = DFLT_ROWS;
}
- if (tui->width != width || tui->height != height) {
- tui->width = width;
- tui->height = height;
+ tui->width = width;
+ tui->height = height;
- ui_client_set_size(width, height);
- }
+ // Redraw on SIGWINCH event if size didn't change. #23411
+ ui_client_set_size(width, height);
}
static void unibi_goto(TUIData *tui, int row, int col)