summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-07-21 21:08:21 +0000
committerBram Moolenaar <Bram@vim.org>2005-07-21 21:08:21 +0000
commit4536002e3046631e1dc73cdaeb59d97f3ad25223 (patch)
tree657934083afa1a794f9b87dc329b503493977823 /src/search.c
parenta3ffd9c7801c3a32c6361f745af8711444df8abf (diff)
downloadvim-git-4536002e3046631e1dc73cdaeb59d97f3ad25223.tar.gz
updated for version 7.0112
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/search.c b/src/search.c
index b2de02763..288197cca 100644
--- a/src/search.c
+++ b/src/search.c
@@ -3666,7 +3666,7 @@ current_tagblock(oap, count_arg, include)
old_start = old_end;
/*
- * If we start on "<aaa>" use the whole block inclusive.
+ * If we start on "<aaa>" select that block.
*/
#ifdef FEAT_VISUAL
if (!VIsual_active || equalpos(VIsual, curwin->w_cursor))
@@ -3713,7 +3713,7 @@ again:
*/
for (n = 0; n < count; ++n)
{
- if (do_searchpair((char_u *)"<[^ \t>/!]\\+\\%(\\_s\\_[^>]\\{-}[^/]>\\|$\\|>\\)",
+ if (do_searchpair((char_u *)"<[^ \t>/!]\\+\\%(\\_s\\_[^>]\\{-}[^/]>\\|$\\|\\_s\\=>\\)",
(char_u *)"",
(char_u *)"</[^>]*>", BACKWARD, (char_u *)"", 0) <= 0)
{
@@ -3791,9 +3791,9 @@ again:
}
curwin->w_cursor = end_pos;
- /* If we now have the same start as before reset "do_include" and try
+ /* If we now have the same text as before reset "do_include" and try
* again. */
- if (equalpos(start_pos, old_start))
+ if (equalpos(start_pos, old_start) && equalpos(end_pos, old_end))
{
do_include = TRUE;
curwin->w_cursor = old_start;