comparison 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
comparison
equal deleted inserted replaced
29049:947c2f51b6f7 29050:a2710736125a
661 else if (lnum <= wp->w_last_cursorline) 661 else if (lnum <= wp->w_last_cursorline)
662 redraw_win_later(wp, SOME_VALID); 662 redraw_win_later(wp, SOME_VALID);
663 } 663 }
664 #endif 664 #endif
665 } 665 }
666 #ifdef FEAT_SEARCH_EXTRA
667 if (wp == curwin && xtra != 0 && search_hl_has_cursor_lnum >= lnum)
668 search_hl_has_cursor_lnum += xtra;
669 #endif
666 } 670 }
667 671
668 // Call update_screen() later, which checks out what needs to be redrawn, 672 // Call update_screen() later, which checks out what needs to be redrawn,
669 // since it notices b_mod_set and then uses b_mod_*. 673 // since it notices b_mod_set and then uses b_mod_*.
670 if (must_redraw < VALID) 674 if (must_redraw < VALID)