]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.463 v7.3.463
authorBram Moolenaar <Bram@vim.org>
Wed, 7 Mar 2012 13:57:52 +0000 (14:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 7 Mar 2012 13:57:52 +0000 (14:57 +0100)
Problem:    When using ":s///c" the cursor is moved away from the match.
            (Lawman)
Solution:   Don't move the cursor when do_ask is set. (Christian Brabandt)

src/ex_cmds.c
src/version.c

index 644c32ba26d3157467c6505504840c01c2f5027e..ba18d9d050d09465e518f8c3e36fe64bd1e6566f 100644 (file)
@@ -5151,10 +5151,13 @@ outofmem:
 
        if (!global_busy)
        {
-           if (endcolumn)
-               coladvance((colnr_T)MAXCOL);
-           else
-               beginline(BL_WHITE | BL_FIX);
+           if (!do_ask)  /* when interactive leave cursor on the match */
+           {
+               if (endcolumn)
+                   coladvance((colnr_T)MAXCOL);
+               else
+                   beginline(BL_WHITE | BL_FIX);
+           }
            if (!do_sub_msg(do_count) && do_ask)
                MSG("");
        }
index a1b588d91b082b310e7042ae7a5a924ccc3cb429..0f98e04e85c124a3e682e8f65210abde3d3717cb 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    463,
 /**/
     462,
 /**/