diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-06-01 12:10:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 18:10:35 +0800 |
commit | f2083bd55cafe861e9dffb1c1658e5b0983c5ef6 (patch) | |
tree | f25ec1af928c20a90e127cfe31bd1897441a8154 /src/nvim/drawscreen.c | |
parent | 138a93a057dabd70673b7466bf5af41bd66f1385 (diff) | |
download | rneovim-f2083bd55cafe861e9dffb1c1658e5b0983c5ef6.tar.gz rneovim-f2083bd55cafe861e9dffb1c1658e5b0983c5ef6.tar.bz2 rneovim-f2083bd55cafe861e9dffb1c1658e5b0983c5ef6.zip |
fix(column): crash with 'signcolumn' set to "number" (#29003)
Problem: Numberwidth may depend on number of signs with text in the
buffer and is not handled correctly for extmark signs.
Solution: Move legacy sign code for changed numberwidth so that it is
handled properly for legacy and extmark signs alike.
Diffstat (limited to 'src/nvim/drawscreen.c')
-rw-r--r-- | src/nvim/drawscreen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c index 039bbd219c..bd9a834869 100644 --- a/src/nvim/drawscreen.c +++ b/src/nvim/drawscreen.c @@ -1548,6 +1548,7 @@ static void win_update(win_T *wp) // Force redraw when width of 'number' or 'relativenumber' column changes. if (wp->w_nrwidth != nrwidth_new) { type = UPD_NOT_VALID; + changed_line_abv_curs_win(wp); wp->w_nrwidth = nrwidth_new; } else { // Set mod_top to the first line that needs displaying because of |