Karsten Hopp ceb597
To: vim_dev@googlegroups.com
Karsten Hopp ceb597
Subject: Patch 7.3.473
Karsten Hopp ceb597
Fcc: outbox
Karsten Hopp ceb597
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ceb597
Mime-Version: 1.0
Karsten Hopp ceb597
Content-Type: text/plain; charset=UTF-8
Karsten Hopp ceb597
Content-Transfer-Encoding: 8bit
Karsten Hopp ceb597
------------
Karsten Hopp ceb597
Karsten Hopp ceb597
Patch 7.3.473
Karsten Hopp ceb597
Problem:    'cursorbind' does not work correctly in combination with
Karsten Hopp ceb597
	    'virtualedit' set to "all".
Karsten Hopp ceb597
Solution:   Copy coladd. (Gary Johnson)
Karsten Hopp ceb597
Files:	    src/move.c
Karsten Hopp ceb597
Karsten Hopp ceb597
Karsten Hopp ceb597
*** ../vim-7.3.472/src/move.c	2012-02-04 23:34:57.000000000 +0100
Karsten Hopp ceb597
--- src/move.c	2012-03-16 19:20:57.000000000 +0100
Karsten Hopp ceb597
***************
Karsten Hopp ceb597
*** 2843,2849 ****
Karsten Hopp ceb597
  do_check_cursorbind()
Karsten Hopp ceb597
  {
Karsten Hopp ceb597
      linenr_T	line = curwin->w_cursor.lnum;
Karsten Hopp ceb597
!     colnr_T	col =  curwin->w_cursor.col;
Karsten Hopp ceb597
      win_T	*old_curwin = curwin;
Karsten Hopp ceb597
      buf_T	*old_curbuf = curbuf;
Karsten Hopp ceb597
      int		restart_edit_save;
Karsten Hopp ceb597
--- 2843,2852 ----
Karsten Hopp ceb597
  do_check_cursorbind()
Karsten Hopp ceb597
  {
Karsten Hopp ceb597
      linenr_T	line = curwin->w_cursor.lnum;
Karsten Hopp ceb597
!     colnr_T	col = curwin->w_cursor.col;
Karsten Hopp ceb597
! # ifdef FEAT_VIRTUALEDIT
Karsten Hopp ceb597
!     colnr_T	coladd = curwin->w_cursor.coladd;
Karsten Hopp ceb597
! # endif
Karsten Hopp ceb597
      win_T	*old_curwin = curwin;
Karsten Hopp ceb597
      buf_T	*old_curbuf = curbuf;
Karsten Hopp ceb597
      int		restart_edit_save;
Karsten Hopp ceb597
***************
Karsten Hopp ceb597
*** 2875,2880 ****
Karsten Hopp ceb597
--- 2878,2886 ----
Karsten Hopp ceb597
  # endif
Karsten Hopp ceb597
  		curwin->w_cursor.lnum = line;
Karsten Hopp ceb597
  	    curwin->w_cursor.col = col;
Karsten Hopp ceb597
+ # ifdef FEAT_VIRTUALEDIT
Karsten Hopp ceb597
+ 	    curwin->w_cursor.coladd = coladd;
Karsten Hopp ceb597
+ # endif
Karsten Hopp ceb597
  
Karsten Hopp ceb597
  	    /* Make sure the cursor is in a valid position.  Temporarily set
Karsten Hopp ceb597
  	     * "restart_edit" to allow the cursor to be beyond the EOL. */
Karsten Hopp ceb597
*** ../vim-7.3.472/src/version.c	2012-03-16 19:07:54.000000000 +0100
Karsten Hopp ceb597
--- src/version.c	2012-03-16 19:24:06.000000000 +0100
Karsten Hopp ceb597
***************
Karsten Hopp ceb597
*** 716,717 ****
Karsten Hopp ceb597
--- 716,719 ----
Karsten Hopp ceb597
  {   /* Add new patch number below this line */
Karsten Hopp ceb597
+ /**/
Karsten Hopp ceb597
+     473,
Karsten Hopp ceb597
  /**/
Karsten Hopp ceb597
Karsten Hopp ceb597
-- 
Karsten Hopp ceb597
hundred-and-one symptoms of being an internet addict:
Karsten Hopp ceb597
201. When somebody asks you where you are, you tell them in which chat room.
Karsten Hopp ceb597
Karsten Hopp ceb597
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ceb597
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ceb597
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp ceb597
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///