summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@zimbu.org>2010-03-23 17:49:24 +0100
committerBram Moolenaar <bram@zimbu.org>2010-03-23 17:49:24 +0100
commit11fde25e67fb0a05b33cb43fb37ea8b8918fc2df (patch)
tree7bb9039cf350356f0d3b1cae0866a06e6a841452
parent1f2e5a8cbc674221fe3013193619b3efee9fa98b (diff)
downloadvim-11fde25e67fb0a05b33cb43fb37ea8b8918fc2df.tar.gz
updated for version 7.2.409v7.2.409v7-2-409
Problem: Summary of number of substitutes is incorrect for ":folddo". (Jean Johner) Solution: Reset sub_nsubs and sub_nlines in global_exe().
-rw-r--r--src/ex_cmds.c4
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index bf5af404..2296c332 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index 4fcc9a68..5d340614 100644
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 409,
+/**/
408,
/**/
407,