diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-10-04 17:00:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-10-04 17:00:20 +0200 |
commit | aa0e80471f663385a143af419708067b1ea80de7 (patch) | |
tree | bebbdfb1fd681ef2318e8bd5368341cf686c2be4 | |
parent | 7701c24e36d516d5f371160e632d26c88ef8f7c6 (diff) | |
download | vim-git-aa0e80471f663385a143af419708067b1ea80de7.tar.gz |
updated for version 7.3.331v7.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.
-rw-r--r-- | src/search.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
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, "</%.*s>\\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 @@ -710,6 +710,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 331, +/**/ 330, /**/ 329, |