diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-25 17:14:42 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-25 17:14:42 +0100 |
commit | 2ac6497f0ef186f0e3ba67d7f0a485bfb612bb08 (patch) | |
tree | 21d6369bb4620188ed97befa8e6afa952edbd92b /src/drawscreen.c | |
parent | 1271572a35ae215fa023d97db9896c5745591024 (diff) |
patch 9.0.1578: SpellCap highlight not always updated when neededv9.0.1578
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)
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index a07c176d03..0912d7a156 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -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. |