aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/optionstr.c
diff options
context:
space:
mode:
authorluukvbaal <31730729+luukvbaal@users.noreply.github.com>2023-03-19 10:21:49 +0100
committerGitHub <noreply@github.com>2023-03-19 09:21:49 +0000
commiteeac80de0cf45951dd696f82e5a823c6de20728c (patch)
treecfd7fd886c8dd701d84f3edc1220c8f86211faf5 /src/nvim/optionstr.c
parent204a8b17c8ebab1619cc47a920a06dcc348d75f7 (diff)
downloadrneovim-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/optionstr.c')
-rw-r--r--src/nvim/optionstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c
index 218b34472a..170800b4e6 100644
--- a/src/nvim/optionstr.c
+++ b/src/nvim/optionstr.c
@@ -1198,8 +1198,8 @@ static void did_set_statusline(win_T *win, char **varp, char **gvarp, char **err
if (varp == &p_ruf) { // reset ru_wid first
ru_wid = 0;
} else if (varp == &win->w_p_stc) {
- win->w_nrwidth_line_count = 0;
- win->w_statuscol_line_count = 0;
+ win->w_nrwidth_line_count = 0; // make sure width is reset
+ win->w_statuscol_line_count = 0; // make sure width is re-estimated
}
char *s = *varp;
if (varp == &p_ruf && *s == '%') {