0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.1578: SpellCap highlight not always updated when needed

Problem:    SpellCap highlight not always updated when needed.
Solution:   Handle updating line below closed fold and other situations where
            only part of the window is redrawn. (Luuk van Baal, closes #12428,
            closes #12420)
This commit is contained in:
Luuk van Baal
2023-05-25 17:14:42 +01:00
committed by Bram Moolenaar
parent 1271572a35
commit 2ac6497f0e
10 changed files with 78 additions and 32 deletions

View File

@@ -2487,8 +2487,7 @@ win_update(win_T *wp)
#endif
// Display one line.
row = win_line(wp, lnum, srow, wp->w_height,
mod_top == 0, FALSE);
row = win_line(wp, lnum, srow, wp->w_height, mod_top, FALSE);
#ifdef FEAT_FOLDING
wp->w_lines[idx].wl_folded = FALSE;
@@ -2535,7 +2534,7 @@ win_update(win_T *wp)
fold_line(wp, fold_count, &win_foldinfo, lnum, row);
else
#endif
(void)win_line(wp, lnum, srow, wp->w_height, TRUE, TRUE);
(void)win_line(wp, lnum, srow, wp->w_height, mod_top, TRUE);
}
// This line does not need to be drawn, advance to the next one.