Mercurial > vim
diff src/drawscreen.c @ 32493:0632606a2530 v9.0.1578
patch 9.0.1578: SpellCap highlight not always updated when needed
Commit: https://github.com/vim/vim/commit/2ac6497f0ef186f0e3ba67d7f0a485bfb612bb08
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Thu May 25 17:14:42 2023 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 May 2023 18:15:04 +0200 |
parents | 9ac987a467d5 |
children | 2614026cd259 |
line wrap: on
line diff
--- 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.