07a99fe
To: vim_dev@googlegroups.com
07a99fe
Subject: Patch 7.4.097
07a99fe
Fcc: outbox
07a99fe
From: Bram Moolenaar <Bram@moolenaar.net>
07a99fe
Mime-Version: 1.0
07a99fe
Content-Type: text/plain; charset=UTF-8
07a99fe
Content-Transfer-Encoding: 8bit
07a99fe
------------
07a99fe
07a99fe
Patch 7.4.097 (after 7.4.034)
07a99fe
Problem:    Unexpected behavior change related to 'virtualedit'. (Ingo Karkat)
07a99fe
Solution:   Update the valid cursor position. (Christian Brabandt)
07a99fe
Files:	    src/ops.c
07a99fe
07a99fe
07a99fe
*** ../vim-7.4.096/src/ops.c	2013-11-11 23:17:31.000000000 +0100
07a99fe
--- src/ops.c	2013-11-21 13:21:24.000000000 +0100
07a99fe
***************
07a99fe
*** 3844,3850 ****
07a99fe
--- 3844,3854 ----
07a99fe
  		    ml_replace(lnum, newp, FALSE);
07a99fe
  		    /* Place cursor on last putted char. */
07a99fe
  		    if (lnum == curwin->w_cursor.lnum)
07a99fe
+ 		    {
07a99fe
+ 			/* make sure curwin->w_virtcol is updated */
07a99fe
+ 			changed_cline_bef_curs();
07a99fe
  			curwin->w_cursor.col += (colnr_T)(totlen - 1);
07a99fe
+ 		    }
07a99fe
  		}
07a99fe
  #ifdef FEAT_VISUAL
07a99fe
  		if (VIsual_active)
07a99fe
*** ../vim-7.4.096/src/version.c	2013-11-21 12:34:07.000000000 +0100
07a99fe
--- src/version.c	2013-11-21 13:08:27.000000000 +0100
07a99fe
***************
07a99fe
*** 740,741 ****
07a99fe
--- 740,743 ----
07a99fe
  {   /* Add new patch number below this line */
07a99fe
+ /**/
07a99fe
+     97,
07a99fe
  /**/
07a99fe
07a99fe
-- 
07a99fe
The only way the average employee can speak to an executive is by taking a
07a99fe
second job as a golf caddie.
07a99fe
				(Scott Adams - The Dilbert principle)
07a99fe
07a99fe
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
07a99fe
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
07a99fe
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
07a99fe
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///