diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-19 00:19:26 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-19 03:22:27 +0200 |
commit | 44d4f0357341d661a8fa7bd88c244e0ab196a838 (patch) | |
tree | c6c0bd1e80bd9baed4c597c20de658c38d062458 /src/nvim/optionstr.c | |
parent | d799456a6b4d9f3000a4a4adb8b71ddee96351b9 (diff) | |
download | rneovim-44d4f0357341d661a8fa7bd88c244e0ab196a838.tar.gz rneovim-44d4f0357341d661a8fa7bd88c244e0ab196a838.tar.bz2 rneovim-44d4f0357341d661a8fa7bd88c244e0ab196a838.zip |
fix(column): rebuild status column when sign column is invalid
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index 6c6190cb08..1f3fb942ff 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -1202,8 +1202,8 @@ static void did_set_statusline(win_T *win, char **varp, char **gvarp, const char if (varp == &p_ruf) { // reset ru_wid first ru_wid = 0; } else if (varp == &win->w_p_stc) { - win->w_nrwidth_line_count = 0; // make sure width is reset - win->w_statuscol_line_count = 0; // make sure width is re-estimated + // reset 'statuscolumn' width + win->w_nrwidth_line_count = 0; } char *s = *varp; if (varp == &p_ruf && *s == '%') { |