0
0
mirror of https://github.com/vim/vim.git synced 2025-10-16 07:24:23 -04:00

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.
This commit is contained in:
Bram Moolenaar
2013-08-14 17:45:29 +02:00
parent c93df6b075
commit c56c459075
2 changed files with 5 additions and 0 deletions

View File

@@ -1760,6 +1760,9 @@ findmatchlimit(oap, initc, flags, maxtravel)
#endif #endif
pos = curwin->w_cursor; pos = curwin->w_cursor;
#ifdef FEAT_VIRTUALEDIT
pos.coladd = 0;
#endif
linep = ml_get(pos.lnum); linep = ml_get(pos.lnum);
cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL); cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL);

View File

@@ -727,6 +727,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
5,
/**/ /**/
4, 4,
/**/ /**/