Mercurial > vim
comparison src/ex_cmds.c @ 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 | c6f1aa1e9f32 |
comparison
equal
deleted
inserted
replaced
2126:e038754d419a | 2127:4e22214f8464 |
---|---|
5236 type = 'v'; | 5236 type = 'v'; |
5237 else | 5237 else |
5238 type = *eap->cmd; | 5238 type = *eap->cmd; |
5239 cmd = eap->arg; | 5239 cmd = eap->arg; |
5240 which_pat = RE_LAST; /* default: use last used regexp */ | 5240 which_pat = RE_LAST; /* default: use last used regexp */ |
5241 sub_nsubs = 0; | |
5242 sub_nlines = 0; | |
5243 | 5241 |
5244 /* | 5242 /* |
5245 * undocumented vi feature: | 5243 * undocumented vi feature: |
5246 * "\/" and "\?": use previous search pattern. | 5244 * "\/" and "\?": use previous search pattern. |
5247 * "\&": use previous substitute pattern. | 5245 * "\&": use previous substitute pattern. |
5341 setpcmark(); | 5339 setpcmark(); |
5342 | 5340 |
5343 /* When the command writes a message, don't overwrite the command. */ | 5341 /* When the command writes a message, don't overwrite the command. */ |
5344 msg_didout = TRUE; | 5342 msg_didout = TRUE; |
5345 | 5343 |
5344 sub_nsubs = 0; | |
5345 sub_nlines = 0; | |
5346 global_need_beginline = FALSE; | 5346 global_need_beginline = FALSE; |
5347 global_busy = 1; | 5347 global_busy = 1; |
5348 old_lcount = curbuf->b_ml.ml_line_count; | 5348 old_lcount = curbuf->b_ml.ml_line_count; |
5349 while (!got_int && (lnum = ml_firstmarked()) != 0 && global_busy == 1) | 5349 while (!got_int && (lnum = ml_firstmarked()) != 0 && global_busy == 1) |
5350 { | 5350 { |