Mercurial > vim
changeset 3121:4b8c614c1c91 v7.3.331
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 04 Oct 2011 17:00:20 +0200 |
parents | 39590d23d797 |
children | 103d12cfdbf7 |
files | src/search.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 *)"",