Mercurial > vim
diff src/change.c @ 29050:a2710736125a v8.2.5047
patch 8.2.5047: CurSearch highlight is often wrong
Commit: https://github.com/vim/vim/commit/368137aa525982984beed73940af481ac53a62af
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 31 13:43:12 2022 +0100
patch 8.2.5047: CurSearch highlight is often wrong
Problem: CurSearch highlight is often wrong.
Solution: Remember the last highlighted position and redraw when needed.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 31 May 2022 14:45:03 +0200 |
parents | 45c182c4f7e9 |
children | fba9e366ced4 |
line wrap: on
line diff
--- a/src/change.c +++ b/src/change.c @@ -663,6 +663,10 @@ changed_common( } #endif } +#ifdef FEAT_SEARCH_EXTRA + if (wp == curwin && xtra != 0 && search_hl_has_cursor_lnum >= lnum) + search_hl_has_cursor_lnum += xtra; +#endif } // Call update_screen() later, which checks out what needs to be redrawn,