fix(ui): redraw winbar alongside statusline

Remove `w_redr_winbar` and use `w_redr_status` to redraw the winbar to
ensure that winbar redraw is triggered alongside the statusline redraw.
This commit is contained in:
Famiu Haque
2022-05-23 18:38:07 +06:00
parent 4c6626f03d
commit 353553f913
3 changed files with 15 additions and 59 deletions

View File

@@ -6709,7 +6709,7 @@ void set_winbar(void)
if (wp->w_winbar_height != winbar_height) {
wp->w_winbar_height = winbar_height;
win_set_inner_size(wp);
wp->w_redr_winbar = winbar_height;
wp->w_redr_status = wp->w_redr_status || winbar_height;
if (winbar_height == 0) {
// When removing winbar, deallocate the w_winbar_click_defs array