diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-03-23 17:49:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-03-23 17:49:24 +0100 |
commit | d25bc238708ca97d9f1c70179a18d1c325e909de (patch) | |
tree | 37465b886b5b5c0e3e44a4c6410a7c59babbbef6 /src/ex_cmds.c | |
parent | 46475520d73c86a75c189079de848a36c725bb3b (diff) | |
download | vim-d25bc238708ca97d9f1c70179a18d1c325e909de.zip |
updated for version 7.2.409
Problem: Summary of number of substitutes is incorrect for ":folddo". (Jean
Johner)
Solution: Reset sub_nsubs and sub_nlines in global_exe().
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index bf5af4044..2296c332b 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; |