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 0d0d26d..5a6a940 100644
--- a/src/search.c
+++ b/src/search.c
@@ -3927,7 +3927,7 @@
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 *)"",