jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.407

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

xaaa

3ef2ca
+ 

bbbb

3ef2ca
+ 

cccc

3ef2ca
+ 

dddd

3ef2ca
+ 
3ef2ca
  A23ab
3ef2ca
  4567ab
3ef2ca
  
3ef2ca
*** ../vim-7.4.406/src/version.c	2014-08-16 17:34:31.186128463 +0200
3ef2ca
--- src/version.c	2014-08-16 17:38:30.546119782 +0200
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     407,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
'Well, here's something to occupy you and keep your mind off things.'
3ef2ca
'It won't work, I have an exceptionally large mind.'
3ef2ca
		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
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    ///