]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1203 v7.3.1203
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Jun 2013 21:00:30 +0000 (23:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Jun 2013 21:00:30 +0000 (23:00 +0200)
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
src/version.c

index ca13709971d12f6ede522359c0839d5c58e273c6..b33a000d73cf86d70f5623f34353f83807656711 100644 (file)
@@ -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
                                )))))
        {
index 3f46c232934371938c1a12baa21ee6ce1ec342cb..d0380a4f104d7fb227a00926dd60d476581fc551 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1203,
 /**/
     1202,
 /**/