]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.409 v7.2.409
authorBram Moolenaar <Bram@vim.org>
Tue, 23 Mar 2010 16:49:24 +0000 (17:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 23 Mar 2010 16:49:24 +0000 (17:49 +0100)
Problem:    Summary of number of substitutes is incorrect for ":folddo". (Jean
            Johner)
Solution:   Reset sub_nsubs and sub_nlines in global_exe().

src/ex_cmds.c
src/version.c

index bf5af40441a2ef1a94de85a1800535d8a37fb93e..2296c332ba49a38624abd6198999692045cbec42 100644 (file)
@@ -5238,8 +5238,6 @@ ex_global(eap)
        type = *eap->cmd;
     cmd = eap->arg;
     which_pat = RE_LAST;           /* default: use last used regexp */
-    sub_nsubs = 0;
-    sub_nlines = 0;
 
     /*
      * undocumented vi feature:
@@ -5343,6 +5341,8 @@ global_exe(cmd)
     /* When the command writes a message, don't overwrite the command. */
     msg_didout = TRUE;
 
+    sub_nsubs = 0;
+    sub_nlines = 0;
     global_need_beginline = FALSE;
     global_busy = 1;
     old_lcount = curbuf->b_ml.ml_line_count;
index 4fcc9a6843b714c61f72df8305e48000a16994a3..5d340614894b7286c1d1dbcb1dbf55e4ef05b187 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    409,
 /**/
     408,
 /**/