fix(column): handle w_redr_statuscol at end filler lines (#27365)

There doesn't seem to be an easy solution that doesn't involve a goto.
Also remove duplicate assignment in win_line().
This commit is contained in:
zeertzjq
2024-02-06 23:01:44 +08:00
committed by GitHub
parent 7f4627fe48
commit 0db6946b39
3 changed files with 21 additions and 1 deletions

View File

@@ -2346,6 +2346,7 @@ static void win_update(win_T *wp)
// 'statuscolumn' width has changed or errored, start from the top.
if (wp->w_redr_statuscol) {
redr_statuscol:
wp->w_redr_statuscol = false;
idx = 0;
row = 0;
@@ -2429,6 +2430,10 @@ static void win_update(win_T *wp)
spellvars_T zero_spv = { 0 };
foldinfo_T zero_foldinfo = { 0 };
row = win_line(wp, wp->w_botline, row, wp->w_grid.rows, 0, &zero_spv, zero_foldinfo);
if (wp->w_redr_statuscol) {
eof = false;
goto redr_statuscol;
}
}
} else if (dollar_vcol == -1) {
wp->w_botline = lnum;