diff options
author | luukvbaal <31730729+luukvbaal@users.noreply.github.com> | 2023-03-19 10:21:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 09:21:49 +0000 |
commit | eeac80de0cf45951dd696f82e5a823c6de20728c (patch) | |
tree | cfd7fd886c8dd701d84f3edc1220c8f86211faf5 /src/nvim/drawscreen.c | |
parent | 204a8b17c8ebab1619cc47a920a06dcc348d75f7 (diff) | |
download | rneovim-eeac80de0cf45951dd696f82e5a823c6de20728c.tar.gz rneovim-eeac80de0cf45951dd696f82e5a823c6de20728c.tar.bz2 rneovim-eeac80de0cf45951dd696f82e5a823c6de20728c.zip |
fix(column): invalidate statuscolumn width when UPD_NOT_VALID (#22723)
Diffstat (limited to 'src/nvim/drawscreen.c')
-rw-r--r-- | src/nvim/drawscreen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c index 499f4a39e3..1c8bf56e8e 100644 --- a/src/nvim/drawscreen.c +++ b/src/nvim/drawscreen.c @@ -1153,6 +1153,7 @@ void comp_col(void) } set_vim_var_nr(VV_ECHOSPACE, sc_col - 1); } + static void redraw_win_signcol(win_T *wp) { // If we can compute a change in the automatic sizing of the sign column @@ -1392,10 +1393,12 @@ static void win_update(win_T *wp, DecorProviders *providers) int type = wp->w_redr_type; if (type >= UPD_NOT_VALID) { - // TODO(bfredl): should only be implied for CLEAR, not NOT_VALID! wp->w_redr_status = true; - wp->w_lines_valid = 0; + if (*wp->w_p_stc != NUL) { + wp->w_nrwidth_line_count = 0; // make sure width is reset + wp->w_statuscol_line_count = 0; // make sure width is re-estimated + } } // Window is zero-height: Only need to draw the separator |