From c56c459075260b4e7fb870ab4687b22222daec08 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 14 Aug 2013 17:45:29 +0200 Subject: [PATCH] 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. --- src/search.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/search.c b/src/search.c index 23dc27ea87..da7bc29612 100644 --- a/src/search.c +++ b/src/search.c @@ -1760,6 +1760,9 @@ findmatchlimit(oap, initc, flags, maxtravel) #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 index 7ccb931539..ec2c2c0002 100644 --- a/src/version.c +++ b/src/version.c @@ -727,6 +727,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 5, /**/ 4, /**/ -- 2.47.2