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