Mercurial > vim
diff src/search.c @ 1527:03ec0f2b9a40 v7.1.242
updated for version 7.1-242
author | vimboss |
---|---|
date | Sat, 26 Jan 2008 20:15:46 +0000 |
parents | cc4fe241baa3 |
children | fc42d9cc7ad0 |
line wrap: on
line diff
--- a/src/search.c +++ b/src/search.c @@ -3637,7 +3637,7 @@ current_block(oap, count, include, what, oap->inclusive = FALSE; if (sol) incl(&curwin->w_cursor); - else if (lt(start_pos, curwin->w_cursor)) + else if (ltoreq(start_pos, curwin->w_cursor)) /* Include the character under the cursor. */ oap->inclusive = TRUE; else @@ -3754,6 +3754,10 @@ current_tagblock(oap, count_arg, include old_pos = curwin->w_cursor; old_end = curwin->w_cursor; /* remember where we started */ old_start = old_end; +#ifdef FEAT_VISUAL + if (!VIsual_active || *p_sel == 'e') +#endif + decl(&old_end); /* old_end is inclusive */ /* * If we start on "<aaa>" select that block.