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