3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.049
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.049
3ef2ca
Problem:    In Ex mode, when line numbers are enabled the substitute prompt is
3ef2ca
	    wrong.
3ef2ca
Solution:   Adjust for the line number size. (Benoit Pierre)
3ef2ca
Files:	    src/ex_cmds.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.048/src/ex_cmds.c	2013-08-07 15:15:51.000000000 +0200
3ef2ca
--- src/ex_cmds.c	2013-10-02 18:31:24.000000000 +0200
3ef2ca
***************
3ef2ca
*** 4740,4750 ****
3ef2ca
  			    char_u	*resp;
3ef2ca
  			    colnr_T	sc, ec;
3ef2ca
  
3ef2ca
! 			    print_line_no_prefix(lnum, FALSE, FALSE);
3ef2ca
  
3ef2ca
  			    getvcol(curwin, &curwin->w_cursor, &sc, NULL, NULL);
3ef2ca
  			    curwin->w_cursor.col = regmatch.endpos[0].col - 1;
3ef2ca
  			    getvcol(curwin, &curwin->w_cursor, NULL, NULL, &ec);
3ef2ca
  			    msg_start();
3ef2ca
  			    for (i = 0; i < (long)sc; ++i)
3ef2ca
  				msg_putchar(' ');
3ef2ca
--- 4740,4756 ----
3ef2ca
  			    char_u	*resp;
3ef2ca
  			    colnr_T	sc, ec;
3ef2ca
  
3ef2ca
! 			    print_line_no_prefix(lnum, do_number, do_list);
3ef2ca
  
3ef2ca
  			    getvcol(curwin, &curwin->w_cursor, &sc, NULL, NULL);
3ef2ca
  			    curwin->w_cursor.col = regmatch.endpos[0].col - 1;
3ef2ca
  			    getvcol(curwin, &curwin->w_cursor, NULL, NULL, &ec);
3ef2ca
+ 			    if (do_number || curwin->w_p_nu)
3ef2ca
+ 			    {
3ef2ca
+ 				int numw = number_width(curwin) + 1;
3ef2ca
+ 				sc += numw;
3ef2ca
+ 				ec += numw;
3ef2ca
+ 			    }
3ef2ca
  			    msg_start();
3ef2ca
  			    for (i = 0; i < (long)sc; ++i)
3ef2ca
  				msg_putchar(' ');
3ef2ca
*** ../vim-7.4.048/src/version.c	2013-10-02 18:22:58.000000000 +0200
3ef2ca
--- src/version.c	2013-10-02 18:33:22.000000000 +0200
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     49,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
What the word 'politics' means: 'Poli' in Latin meaning 'many' and 'tics'
3ef2ca
meaning 'bloodsucking creatures'.
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    ///