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