Karsten Hopp 8969a5
To: vim_dev@googlegroups.com
Karsten Hopp 8969a5
Subject: Patch 7.3.463
Karsten Hopp 8969a5
Fcc: outbox
Karsten Hopp 8969a5
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8969a5
Mime-Version: 1.0
Karsten Hopp 8969a5
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8969a5
Content-Transfer-Encoding: 8bit
Karsten Hopp 8969a5
------------
Karsten Hopp 8969a5
Karsten Hopp 8969a5
Patch 7.3.463
Karsten Hopp 8969a5
Problem:    When using ":s///c" the cursor is moved away from the match.
Karsten Hopp 8969a5
	    (Lawman)
Karsten Hopp 8969a5
Solution:   Don't move the cursor when do_ask is set. (Christian Brabandt)
Karsten Hopp 8969a5
Files:	    src/ex_cmds.c
Karsten Hopp 8969a5
Karsten Hopp 8969a5
Karsten Hopp 8969a5
*** ../vim-7.3.462/src/ex_cmds.c	2012-02-22 14:58:24.000000000 +0100
Karsten Hopp 8969a5
--- src/ex_cmds.c	2012-03-07 14:54:21.000000000 +0100
Karsten Hopp 8969a5
***************
Karsten Hopp 8969a5
*** 5151,5160 ****
Karsten Hopp 8969a5
  
Karsten Hopp 8969a5
  	if (!global_busy)
Karsten Hopp 8969a5
  	{
Karsten Hopp 8969a5
! 	    if (endcolumn)
Karsten Hopp 8969a5
! 		coladvance((colnr_T)MAXCOL);
Karsten Hopp 8969a5
! 	    else
Karsten Hopp 8969a5
! 		beginline(BL_WHITE | BL_FIX);
Karsten Hopp 8969a5
  	    if (!do_sub_msg(do_count) && do_ask)
Karsten Hopp 8969a5
  		MSG("");
Karsten Hopp 8969a5
  	}
Karsten Hopp 8969a5
--- 5151,5163 ----
Karsten Hopp 8969a5
  
Karsten Hopp 8969a5
  	if (!global_busy)
Karsten Hopp 8969a5
  	{
Karsten Hopp 8969a5
! 	    if (!do_ask)  /* when interactive leave cursor on the match */
Karsten Hopp 8969a5
! 	    {
Karsten Hopp 8969a5
! 		if (endcolumn)
Karsten Hopp 8969a5
! 		    coladvance((colnr_T)MAXCOL);
Karsten Hopp 8969a5
! 		else
Karsten Hopp 8969a5
! 		    beginline(BL_WHITE | BL_FIX);
Karsten Hopp 8969a5
! 	    }
Karsten Hopp 8969a5
  	    if (!do_sub_msg(do_count) && do_ask)
Karsten Hopp 8969a5
  		MSG("");
Karsten Hopp 8969a5
  	}
Karsten Hopp 8969a5
*** ../vim-7.3.462/src/version.c	2012-02-29 19:19:57.000000000 +0100
Karsten Hopp 8969a5
--- src/version.c	2012-03-07 14:55:39.000000000 +0100
Karsten Hopp 8969a5
***************
Karsten Hopp 8969a5
*** 716,717 ****
Karsten Hopp 8969a5
--- 716,719 ----
Karsten Hopp 8969a5
  {   /* Add new patch number below this line */
Karsten Hopp 8969a5
+ /**/
Karsten Hopp 8969a5
+     463,
Karsten Hopp 8969a5
  /**/
Karsten Hopp 8969a5
Karsten Hopp 8969a5
-- 
Karsten Hopp 8969a5
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 8969a5
151. You find yourself engaged to someone you've never actually met,
Karsten Hopp 8969a5
     except through e-mail.
Karsten Hopp 8969a5
Karsten Hopp 8969a5
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8969a5
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8969a5
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8969a5
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///