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
commit4ce239b0b167cbbce1fbbaeced2133bcd69ee90e (patch)
tree7d7f8cfeb78c175ae1eee76f543d5948f5f0871b
parent335167994849a66a6635429fb42461ad79574b2f (diff)
downloadvim-git-4ce239b0b167cbbce1fbbaeced2133bcd69ee90e.tar.gz
updated for version 7.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 ca1370997..b33a000d7 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 3f46c2329..d0380a4f1 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,