]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.331 v7.3.331
authorBram Moolenaar <Bram@vim.org>
Tue, 4 Oct 2011 15:00:20 +0000 (17:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 Oct 2011 15:00:20 +0000 (17:00 +0200)
Problem:    "vit" selects wrong text when a tag name starts with the same text
            as an outer tag name. (Ben Fritz)
Solution:   Add "\>" to the pattern to check for word boundary.

src/search.c
src/version.c

index 0d0d26d810a59a3eab42d38fb783ef5e02aefdc7..5a6a940c0c66e0ef6584b91f1e21ad892345038f 100644 (file)
@@ -3927,7 +3927,7 @@ again:
        curwin->w_cursor = old_pos;
        goto theend;
     }
-    sprintf((char *)spat, "<%.*s\\%%(\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p);
+    sprintf((char *)spat, "<%.*s\\>\\%%(\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p);
     sprintf((char *)epat, "</%.*s>\\c", len, p);
 
     r = do_searchpair(spat, (char_u *)"", epat, FORWARD, (char_u *)"",
index 74a32d1d7c737898c418a9c865da178f6da7d78f..6b1676d2d3bd4756653338aaf05aca43ee9edb87 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    331,
 /**/
     330,
 /**/