mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +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:
@@ -1580,7 +1580,6 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int col_rows, s
|
||||
// win_line_start(wp, &wlv);
|
||||
wlv.col = 0;
|
||||
wlv.off = 0;
|
||||
draw_cols = true;
|
||||
continue;
|
||||
} else {
|
||||
break;
|
||||
|
@@ -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