summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2013-06-15 23:00:30 +0200
committerBram Moolenaar <bram@vim.org>2013-06-15 23:00:30 +0200
commit0f8874d7c0c3d340bf0944220808e1a404f73ea3 (patch)
treec73c45fb1da288321d8cbf2d6c338b2dba50d85e
parent94ab2c1a77b4bd809e2ee1d4adeaec24ab7c6709 (diff)
downloadvim-0f8874d7c0c3d340bf0944220808e1a404f73ea3.tar.gz
updated for version 7.3.1203v7.3.1203v7-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)
-rw-r--r--src/screen.c4
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index ca137099..b33a000d 100644
--- 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
index 3f46c232..d0380a4f 100644
--- 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,