mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user