3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.005
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.005
3ef2ca
Problem:    Using "vaB" while 'virtualedit' is set selects the wrong area.
3ef2ca
	    (Dimitar Dimitrov)
3ef2ca
Solution:   Reset coladd when finding a match.
3ef2ca
Files:	    src/search.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.004/src/search.c	2013-07-17 19:20:47.000000000 +0200
3ef2ca
--- src/search.c	2013-08-14 17:32:38.000000000 +0200
3ef2ca
***************
3ef2ca
*** 1760,1765 ****
3ef2ca
--- 1760,1768 ----
3ef2ca
  #endif
3ef2ca
  
3ef2ca
      pos = curwin->w_cursor;
3ef2ca
+ #ifdef FEAT_VIRTUALEDIT
3ef2ca
+     pos.coladd = 0;
3ef2ca
+ #endif
3ef2ca
      linep = ml_get(pos.lnum);
3ef2ca
  
3ef2ca
      cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL);
3ef2ca
*** ../vim-7.4.004/src/version.c	2013-08-14 17:11:14.000000000 +0200
3ef2ca
--- src/version.c	2013-08-14 17:38:05.000000000 +0200
3ef2ca
***************
3ef2ca
*** 729,730 ****
3ef2ca
--- 729,732 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     5,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
You can't have everything.  Where would you put it?
3ef2ca
		-- Steven Wright
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///