diff src/search.c @ 5304:3640cf4c0d4b v7.4.005

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.
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Aug 2013 17:45:29 +0200
parents 839ebe7c1b2f
children eb33cadafcab
line wrap: on
line diff
--- 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);