jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.407

073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.407
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.407
073263
Problem:    Inserting text for Visual block mode, with cursor movement,
073263
	    repeats the wrong text. (Aleksandar Ivanov)
073263
Solution:   Reset the update_Insstart_orig flag. (Christian Brabandt)
073263
Files:	    src/edit.c, src/testdir/test39.in, src/testdir/test39.ok
073263
073263
073263
*** ../vim-7.4.406/src/edit.c	2014-07-30 16:00:45.543553496 +0200
073263
--- src/edit.c	2014-08-16 18:10:10.914050861 +0200
073263
***************
073263
*** 6768,6780 ****
073263
  {
073263
      if (arrow_used)
073263
      {
073263
  	if (u_save_cursor() == OK)
073263
  	{
073263
  	    arrow_used = FALSE;
073263
  	    ins_need_undo = FALSE;
073263
  	}
073263
! 	Insstart = curwin->w_cursor;	/* new insertion starts here */
073263
! 	Insstart_textlen = (colnr_T)linetabsize(ml_get_curline());
073263
  	ai_col = 0;
073263
  #ifdef FEAT_VREPLACE
073263
  	if (State & VREPLACE_FLAG)
073263
--- 6768,6786 ----
073263
  {
073263
      if (arrow_used)
073263
      {
073263
+ 	Insstart = curwin->w_cursor;	/* new insertion starts here */
073263
+ 	if (Insstart.col > Insstart_orig.col && !ins_need_undo)
073263
+ 	    /* Don't update the original insert position when moved to the
073263
+ 	     * right, except when nothing was inserted yet. */
073263
+ 	    update_Insstart_orig = FALSE;
073263
+ 	Insstart_textlen = (colnr_T)linetabsize(ml_get_curline());
073263
+ 
073263
  	if (u_save_cursor() == OK)
073263
  	{
073263
  	    arrow_used = FALSE;
073263
  	    ins_need_undo = FALSE;
073263
  	}
073263
! 
073263
  	ai_col = 0;
073263
  #ifdef FEAT_VREPLACE
073263
  	if (State & VREPLACE_FLAG)
073263
*** ../vim-7.4.406/src/testdir/test39.in	2014-03-19 18:57:27.730175565 +0100
073263
--- src/testdir/test39.in	2014-08-16 17:52:23.078089588 +0200
073263
***************
073263
*** 23,28 ****
073263
--- 23,31 ----
073263
  /^aaaa/
073263
  :exe ":norm! l\<C-V>jjjlllI\<Right>\<Right>  \<Esc>"
073263
  :/^aa/,/^$/w >> test.out
073263
+ /xaaa$/
073263
+ :exe ":norm! \<C-V>jjjI<>\<Left>p\<Esc>"
073263
+ :/xaaa$/,/^$/w >> test.out
073263
  :" Test for Visual block was created with the last <C-v>$
073263
  /^A23$/
073263
  :exe ":norm! l\<C-V>j$Aab\<Esc>"
073263
***************
073263
*** 77,82 ****
073263
--- 80,90 ----
073263
  cccccc
073263
  dddddd
073263
  
073263
+ xaaa
073263
+ bbbb
073263
+ cccc
073263
+ dddd
073263
+ 
073263
  A23
073263
  4567
073263
  
073263
*** ../vim-7.4.406/src/testdir/test39.ok	2014-03-19 18:57:27.730175565 +0100
073263
--- src/testdir/test39.ok	2014-08-16 17:50:57.330092698 +0200
073263
***************
073263
*** 8,13 ****
073263
--- 8,18 ----
073263
  ccc  ccc
073263
  ddd  ddd
073263
  
073263
+ 

xaaa

073263
+ 

bbbb

073263
+ 

cccc

073263
+ 

dddd

073263
+ 
073263
  A23ab
073263
  4567ab
073263
  
073263
*** ../vim-7.4.406/src/version.c	2014-08-16 17:34:31.186128463 +0200
073263
--- src/version.c	2014-08-16 17:38:30.546119782 +0200
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     407,
073263
  /**/
073263
073263
-- 
073263
'Well, here's something to occupy you and keep your mind off things.'
073263
'It won't work, I have an exceptionally large mind.'
073263
		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///