]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.049 v7.4.049
authorBram Moolenaar <Bram@vim.org>
Wed, 2 Oct 2013 16:43:06 +0000 (18:43 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 2 Oct 2013 16:43:06 +0000 (18:43 +0200)
Problem:    In Ex mode, when line numbers are enabled the substitute prompt is
            wrong.
Solution:   Adjust for the line number size. (Benoit Pierre)

src/ex_cmds.c
src/version.c

index b79a2591163937dec12b8dfe408234335b0dfe56..76cc8f6d2394cb5f8ce3b6916bd37531d5c94aaf 100644 (file)
@@ -4740,11 +4740,17 @@ do_sub(eap)
                            char_u      *resp;
                            colnr_T     sc, ec;
 
-                           print_line_no_prefix(lnum, FALSE, FALSE);
+                           print_line_no_prefix(lnum, do_number, do_list);
 
                            getvcol(curwin, &curwin->w_cursor, &sc, NULL, NULL);
                            curwin->w_cursor.col = regmatch.endpos[0].col - 1;
                            getvcol(curwin, &curwin->w_cursor, NULL, NULL, &ec);
+                           if (do_number || curwin->w_p_nu)
+                           {
+                               int numw = number_width(curwin) + 1;
+                               sc += numw;
+                               ec += numw;
+                           }
                            msg_start();
                            for (i = 0; i < (long)sc; ++i)
                                msg_putchar(' ');
index 5a916a9e854397a8ff31b42cafa7d34c0236f888..7b3e7edf060102a902604362ccae958a76e8d4fe 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    49,
 /**/
     48,
 /**/