# HG changeset patch # User Bram Moolenaar # Date 1371330030 -7200 # Node ID ba328b4a990ee460cc907ec59aabee8d872b7768 # Parent d3054ab8d1281083dbf22830e5c98395be866f5e updated for version 7.3.1203 Problem: Matches from matchadd() might be highlighted incorrectly when they are at a fixed position and inserting lines. (John Szakmeister) Solution: Redraw all lines below a change if there are highlighted matches. (idea by Christian Brabandt) diff --git a/src/screen.c b/src/screen.c --- a/src/screen.c +++ b/src/screen.c @@ -1638,6 +1638,10 @@ win_update(wp) # endif syntax_check_changed(lnum))) #endif +#ifdef FEAT_SEARCH_EXTRA + /* match in fixed position might need redraw */ + || wp->w_match_head != NULL +#endif ))))) { #ifdef FEAT_SEARCH_EXTRA diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1203, +/**/ 1202, /**/ 1201,