Skip to content

Commit bb1064e

Browse files
committed
updated for version 7.4.005
Problem: Using "vaB" while 'virtualedit' is set selects the wrong area. (Dimitar Dimitrov) Solution: Reset coladd when finding a match.
1 parent de6127d commit bb1064e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/search.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,9 @@ findmatchlimit(oap, initc, flags, maxtravel)
17601760
#endif
17611761

17621762
pos = curwin->w_cursor;
1763+
#ifdef FEAT_VIRTUALEDIT
1764+
pos.coladd = 0;
1765+
#endif
17631766
linep = ml_get(pos.lnum);
17641767

17651768
cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ static char *(features[]) =
727727

728728
static int included_patches[] =
729729
{ /* Add new patch number below this line */
730+
/**/
731+
5,
730732
/**/
731733
4,
732734
/**/

0 commit comments

Comments
 (0)