comparison 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
comparison
equal deleted inserted replaced
5303:fcba6c74db95 5304:3640cf4c0d4b
1758 int lispcomm = FALSE; /* inside of Lisp-style comment */ 1758 int lispcomm = FALSE; /* inside of Lisp-style comment */
1759 int lisp = curbuf->b_p_lisp; /* engage Lisp-specific hacks ;) */ 1759 int lisp = curbuf->b_p_lisp; /* engage Lisp-specific hacks ;) */
1760 #endif 1760 #endif
1761 1761
1762 pos = curwin->w_cursor; 1762 pos = curwin->w_cursor;
1763 #ifdef FEAT_VIRTUALEDIT
1764 pos.coladd = 0;
1765 #endif
1763 linep = ml_get(pos.lnum); 1766 linep = ml_get(pos.lnum);
1764 1767
1765 cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL); 1768 cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL);
1766 cpo_bsl = (vim_strchr(p_cpo, CPO_MATCHBSL) != NULL); 1769 cpo_bsl = (vim_strchr(p_cpo, CPO_MATCHBSL) != NULL);
1767 1770