diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-06 23:01:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 23:01:44 +0800 |
commit | 0db6946b39fd031c9fe3c38a7dd54efa9131a6ac (patch) | |
tree | 35612a0dd0ca7f34a9936953a4e0c2a74ef58566 /src/nvim/drawscreen.c | |
parent | 7f4627fe4812da5526b62f9463459cf12931f10e (diff) | |
download | rneovim-0db6946b39fd031c9fe3c38a7dd54efa9131a6ac.tar.gz rneovim-0db6946b39fd031c9fe3c38a7dd54efa9131a6ac.tar.bz2 rneovim-0db6946b39fd031c9fe3c38a7dd54efa9131a6ac.zip |
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().
Diffstat (limited to 'src/nvim/drawscreen.c')
-rw-r--r-- | src/nvim/drawscreen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c index 4b7dd40616..f23c0a0fd3 100644 --- a/src/nvim/drawscreen.c +++ b/src/nvim/drawscreen.c @@ -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; |