diff src/search.c @ 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 3f1a4ed36d1b
children 320cc46d0eb0
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 *)"",