Blame SOURCES/7.4.049

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