From 4ce239b0b167cbbce1fbbaeced2133bcd69ee90e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 15 Jun 2013 23:00:30 +0200 Subject: [PATCH] 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) --- src/screen.c | 4 ++++ src/version.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/screen.c b/src/screen.c index ca1370997..b33a000d7 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1637,6 +1637,10 @@ win_update(wp) && hasAnyFolding(wp)) || # endif syntax_check_changed(lnum))) +#endif +#ifdef FEAT_SEARCH_EXTRA + /* match in fixed position might need redraw */ + || wp->w_match_head != NULL #endif ))))) { diff --git a/src/version.c b/src/version.c index 3f46c2329..d0380a4f1 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1203, /**/ 1202, /**/ -- 2.50.1