diff options
| author | luukvbaal <luukvbaal@gmail.com> | 2025-02-23 09:35:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-23 16:35:26 +0800 |
| commit | 5a41f7e69c77e70f8dcd55a4e15beb9941d00855 (patch) | |
| tree | eb86bf2ee1534424b1e5ba69d97ceeb163ed50a2 /src/nvim/fold.c | |
| parent | 1c8173487104f905482b1d5a327defadf2c64573 (diff) | |
| download | rneovim-5a41f7e69c77e70f8dcd55a4e15beb9941d00855.tar.gz rneovim-5a41f7e69c77e70f8dcd55a4e15beb9941d00855.tar.bz2 rneovim-5a41f7e69c77e70f8dcd55a4e15beb9941d00855.zip | |
vim-patch:9.1.1136: Match highlighting marks a buffer region as changed (#32561)
Problem: Match highlighting marks a buffer region to be redrawn as if
its buffer text was changed, unnecessarily invoking syntax code.
Solution: Set the `w_redraw_top/bot` variables instead of the b_mod_* ones
(Luuk van Baal)
https://github.com/vim/vim/commit/7bbb0f357e9f9d3a737dac75e4b5ba7dfbf3ecc1
Diffstat (limited to 'src/nvim/fold.c')
| -rw-r--r-- | src/nvim/fold.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c index b59933d600..45cc327444 100644 --- a/src/nvim/fold.c +++ b/src/nvim/fold.c @@ -2098,10 +2098,7 @@ static void foldUpdateIEMS(win_T *const wp, linenr_T top, linenr_T bot) // this in other situations, the changed lines will be redrawn anyway and // this method can cause the whole window to be updated. if (end != bot) { - if (wp->w_redraw_top == 0 || wp->w_redraw_top > top) { - wp->w_redraw_top = top; - } - wp->w_redraw_bot = MAX(wp->w_redraw_bot, end); + redraw_win_range_later(wp, top, end); } invalid_top = 0; |