commit | c56c459075260b4e7fb870ab4687b22222daec08 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Aug 14 17:45:29 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Aug 14 17:45:29 2013 +0200 |
tree | 694da9f9084e8cd52c8eb84d23539b9e0da8c2f5 | |
parent | c93df6b0752cf1d11b0c880748821f881c1c4d08 [diff] [blame] |
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 index 23dc27e..da7bc29 100644 --- a/src/search.c +++ b/src/search.c
@@ -1760,6 +1760,9 @@ #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);