Mercurial > vim
changeset 2127:4e22214f8464 v7.2.409
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().
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Tue, 23 Mar 2010 17:49:24 +0100 |
parents | e038754d419a |
children | a16af0072ea8 |
files | src/ex_cmds.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;