# HG changeset patch # User Bram Moolenaar # Date 1376495129 -7200 # Node ID 3640cf4c0d4b6e5687bb7a31678fab70c88ed94b # Parent fcba6c74db957b7db733e1966a51f0e16ab7e3c5 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. diff --git a/src/search.c b/src/search.c --- a/src/search.c +++ b/src/search.c @@ -1760,6 +1760,9 @@ findmatchlimit(oap, initc, flags, maxtra #endif pos = curwin->w_cursor; +#ifdef FEAT_VIRTUALEDIT + pos.coladd = 0; +#endif linep = ml_get(pos.lnum); cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 5, +/**/ 4, /**/ 3,