diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-05-06 11:48:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 11:48:33 +0200 |
commit | d94db802277bd55dd14d59f88fcc935ee55820e2 (patch) | |
tree | 1263173da1f4b7c88e15348fa661b6ccac7d78e3 /src | |
parent | 5abba97d77f2a5c4a47a68cad4063b4de303b95c (diff) | |
parent | 0f1b511f2302324684c3ed9ff586f51c2129694d (diff) | |
download | rneovim-d94db802277bd55dd14d59f88fcc935ee55820e2.tar.gz rneovim-d94db802277bd55dd14d59f88fcc935ee55820e2.tar.bz2 rneovim-d94db802277bd55dd14d59f88fcc935ee55820e2.zip |
Merge pull request #23415 from zeertzjq/sigwinch-redraw
fix(tui): redraw on SIGWINCH even if size didn't change
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tui/tui.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 0d661d2b58..2de1467511 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) |