1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2022-05-31 13:43:12 +01:00
parent 4aaf3e7f4d
commit 368137aa52
7 changed files with 49 additions and 6 deletions

View File

@@ -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,