3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.097
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.097 (after 7.4.034)
3ef2ca
Problem:    Unexpected behavior change related to 'virtualedit'. (Ingo Karkat)
3ef2ca
Solution:   Update the valid cursor position. (Christian Brabandt)
3ef2ca
Files:	    src/ops.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.096/src/ops.c	2013-11-11 23:17:31.000000000 +0100
3ef2ca
--- src/ops.c	2013-11-21 13:21:24.000000000 +0100
3ef2ca
***************
3ef2ca
*** 3844,3850 ****
3ef2ca
--- 3844,3854 ----
3ef2ca
  		    ml_replace(lnum, newp, FALSE);
3ef2ca
  		    /* Place cursor on last putted char. */
3ef2ca
  		    if (lnum == curwin->w_cursor.lnum)
3ef2ca
+ 		    {
3ef2ca
+ 			/* make sure curwin->w_virtcol is updated */
3ef2ca
+ 			changed_cline_bef_curs();
3ef2ca
  			curwin->w_cursor.col += (colnr_T)(totlen - 1);
3ef2ca
+ 		    }
3ef2ca
  		}
3ef2ca
  #ifdef FEAT_VISUAL
3ef2ca
  		if (VIsual_active)
3ef2ca
*** ../vim-7.4.096/src/version.c	2013-11-21 12:34:07.000000000 +0100
3ef2ca
--- src/version.c	2013-11-21 13:08:27.000000000 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     97,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
The only way the average employee can speak to an executive is by taking a
3ef2ca
second job as a golf caddie.
3ef2ca
				(Scott Adams - The Dilbert principle)
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    ///