From: Bram Moolenaar Date: Tue, 4 Oct 2011 15:00:20 +0000 (+0200) Subject: updated for version 7.3.331 X-Git-Tag: v7.3.331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa0e80471f663385a143af419708067b1ea80de7;p=vim updated for version 7.3.331 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. --- diff --git a/src/search.c b/src/search.c index 0d0d26d81..5a6a940c0 100644 --- a/src/search.c +++ b/src/search.c @@ -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, "\\c", len, p); r = do_searchpair(spat, (char_u *)"", epat, FORWARD, (char_u *)"", diff --git a/src/version.c b/src/version.c index 74a32d1d7..6b1676d2d 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 331, /**/ 330, /**/