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