Skip to content
Browse files

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.
  • Loading branch information...
1 parent b802b6e commit 6e71ef1f6d9432a84c3f069e3b7e207b2e66a0f1 @brammool brammool committed Oct 4, 2011
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/search.c
  2. +2 −0 src/version.c
View
2 src/search.c
@@ -3927,7 +3927,7 @@ current_tagblock(oap, count_arg, include)
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 *)"",
View
2 src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 331,
+/**/
330,
/**/
329,

0 comments on commit 6e71ef1

Please sign in to comment.
Something went wrong with that request. Please try again.