jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.005

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