diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-31 13:43:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-31 13:43:12 +0100 |
commit | 368137aa525982984beed73940af481ac53a62af (patch) | |
tree | 6b6c9fc6b00fb7ed3fb71bb3b53d01f62f8e981a /src/change.c | |
parent | 4aaf3e7f4db599932d01d87e5bbcdc342cccee27 (diff) |
patch 8.2.5047: CurSearch highlight is often wrongv8.2.5047
Problem: CurSearch highlight is often wrong.
Solution: Remember the last highlighted position and redraw when needed.
Diffstat (limited to 'src/change.c')
-rw-r--r-- | src/change.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/change.c b/src/change.c index a9927e0fde..ed1f3a302b 100644 --- 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, |