dcaee6
To: vim_dev@googlegroups.com
dcaee6
Subject: Patch 7.4.049
dcaee6
Fcc: outbox
dcaee6
From: Bram Moolenaar <Bram@moolenaar.net>
dcaee6
Mime-Version: 1.0
dcaee6
Content-Type: text/plain; charset=UTF-8
dcaee6
Content-Transfer-Encoding: 8bit
dcaee6
------------
dcaee6
dcaee6
Patch 7.4.049
dcaee6
Problem:    In Ex mode, when line numbers are enabled the substitute prompt is
dcaee6
	    wrong.
dcaee6
Solution:   Adjust for the line number size. (Benoit Pierre)
dcaee6
Files:	    src/ex_cmds.c
dcaee6
dcaee6
dcaee6
*** ../vim-7.4.048/src/ex_cmds.c	2013-08-07 15:15:51.000000000 +0200
dcaee6
--- src/ex_cmds.c	2013-10-02 18:31:24.000000000 +0200
dcaee6
***************
dcaee6
*** 4740,4750 ****
dcaee6
  			    char_u	*resp;
dcaee6
  			    colnr_T	sc, ec;
dcaee6
  
dcaee6
! 			    print_line_no_prefix(lnum, FALSE, FALSE);
dcaee6
  
dcaee6
  			    getvcol(curwin, &curwin->w_cursor, &sc, NULL, NULL);
dcaee6
  			    curwin->w_cursor.col = regmatch.endpos[0].col - 1;
dcaee6
  			    getvcol(curwin, &curwin->w_cursor, NULL, NULL, &ec);
dcaee6
  			    msg_start();
dcaee6
  			    for (i = 0; i < (long)sc; ++i)
dcaee6
  				msg_putchar(' ');
dcaee6
--- 4740,4756 ----
dcaee6
  			    char_u	*resp;
dcaee6
  			    colnr_T	sc, ec;
dcaee6
  
dcaee6
! 			    print_line_no_prefix(lnum, do_number, do_list);
dcaee6
  
dcaee6
  			    getvcol(curwin, &curwin->w_cursor, &sc, NULL, NULL);
dcaee6
  			    curwin->w_cursor.col = regmatch.endpos[0].col - 1;
dcaee6
  			    getvcol(curwin, &curwin->w_cursor, NULL, NULL, &ec);
dcaee6
+ 			    if (do_number || curwin->w_p_nu)
dcaee6
+ 			    {
dcaee6
+ 				int numw = number_width(curwin) + 1;
dcaee6
+ 				sc += numw;
dcaee6
+ 				ec += numw;
dcaee6
+ 			    }
dcaee6
  			    msg_start();
dcaee6
  			    for (i = 0; i < (long)sc; ++i)
dcaee6
  				msg_putchar(' ');
dcaee6
*** ../vim-7.4.048/src/version.c	2013-10-02 18:22:58.000000000 +0200
dcaee6
--- src/version.c	2013-10-02 18:33:22.000000000 +0200
dcaee6
***************
dcaee6
*** 740,741 ****
dcaee6
--- 740,743 ----
dcaee6
  {   /* Add new patch number below this line */
dcaee6
+ /**/
dcaee6
+     49,
dcaee6
  /**/
dcaee6
dcaee6
-- 
dcaee6
What the word 'politics' means: 'Poli' in Latin meaning 'many' and 'tics'
dcaee6
meaning 'bloodsucking creatures'.
dcaee6
dcaee6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
dcaee6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
dcaee6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
dcaee6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///