]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.005 v7.4.005
authorBram Moolenaar <Bram@vim.org>
Wed, 14 Aug 2013 15:45:29 +0000 (17:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 14 Aug 2013 15:45:29 +0000 (17:45 +0200)
Problem:    Using "vaB" while 'virtualedit' is set selects the wrong area.
            (Dimitar Dimitrov)
Solution:   Reset coladd when finding a match.

src/search.c
src/version.c

index 23dc27ea876575251f9c047bbd0dc2c2094a1f4d..da7bc29612292f5ffb45d4695901e15bb5a0385b 100644 (file)
@@ -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);
index 7ccb9315399731210ee3cd2e9dd004d929e64ebe..ec2c2c0002c3525b4a900d9bfb4830866411e475 100644 (file)
@@ -727,6 +727,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5,
 /**/
     4,
 /**/