fix: setting tabline option not redrawing tabline

With #20374 tabline option is marked with 'statuslines' redraw flag.
But 'statuslines' doesn't redraw tabline. As a result, tabline doesn't
get redrawn when tabline option is set and statuslines get unnecessarily redrawn.

This patch fixes the issue by adding a new redraw flag P_RTABL to redraw
tabline.
This commit is contained in:
shadmansaleh
2022-10-22 13:54:29 +06:00
parent 8371907203
commit a53998ae78
5 changed files with 44 additions and 2 deletions

View File

@@ -2648,6 +2648,10 @@ void check_redraw(uint32_t flags)
status_redraw_all();
}
if ((flags & P_RTABL) || all) { // mark tablines dirty
redraw_tabline = true;
}
if ((flags & P_RBUF) || (flags & P_RWIN) || all) {
changed_window_setting();
}