fix(column): invalidate statuscolumn width when UPD_NOT_VALID (#22723)

This commit is contained in:
luukvbaal
2023-03-19 10:21:49 +01:00
committed by GitHub
parent 204a8b17c8
commit eeac80de0c
5 changed files with 11 additions and 28 deletions

View File

@@ -1198,8 +1198,8 @@ static void did_set_statusline(win_T *win, char **varp, char **gvarp, char **err
if (varp == &p_ruf) { // reset ru_wid first
ru_wid = 0;
} else if (varp == &win->w_p_stc) {
win->w_nrwidth_line_count = 0;
win->w_statuscol_line_count = 0;
win->w_nrwidth_line_count = 0; // make sure width is reset
win->w_statuscol_line_count = 0; // make sure width is re-estimated
}
char *s = *varp;
if (varp == &p_ruf && *s == '%') {