]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.420 v7.3.420
authorBram Moolenaar <Bram@vim.org>
Thu, 26 Jan 2012 19:58:26 +0000 (20:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 26 Jan 2012 19:58:26 +0000 (20:58 +0100)
Problem:    "it" and "at" don't work properly with a dash in the tag name.
Solution:   Require a space to match the tag name. (Christian Brabandt)

src/search.c
src/version.c

index c9d4b5ea264f0d6c3cef9c01bb7306d09d363537..b29551dab6e6f57a3c9f0681cedf0c1165c405e6 100644 (file)
@@ -3918,7 +3918,7 @@ again:
        curwin->w_cursor = old_pos;
        goto theend;
     }
-    spat = alloc(len + 29);
+    spat = alloc(len + 31);
     epat = alloc(len + 9);
     if (spat == NULL || epat == NULL)
     {
@@ -3927,7 +3927,7 @@ again:
        curwin->w_cursor = old_pos;
        goto theend;
     }
-    sprintf((char *)spat, "<%.*s\\>\\%%(\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p);
+    sprintf((char *)spat, "<%.*s\\>\\%%(\\s\\_[^>]\\{-}[^/]>\\|>\\)\\c", len, p);
     sprintf((char *)epat, "</%.*s>\\c", len, p);
 
     r = do_searchpair(spat, (char_u *)"", epat, FORWARD, (char_u *)"",
index 8f5052b5d97075d6f8a0c2603993cdd276be8884..9f319837af48184243d8e37f86699fb7f8db0bba 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    420,
 /**/
     419,
 /**/