fix(tui): redraw on SIGWINCH even if size didn't change

(cherry picked from commit 0f1b511f23)
This commit is contained in:
zeertzjq
2023-05-01 12:20:07 +08:00
committed by github-actions[bot]
parent 13d8cca951
commit c464df84f7
2 changed files with 27 additions and 5 deletions

View File

@@ -1528,12 +1528,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)