1
0
forked from aniani/vim

updated for version 7.4.396

Problem:    When 'clipboard' is "unnamed", :g/pat/d is very slow. (Praful)
Solution:   Only set the clipboard after the last delete. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2014-08-06 18:17:11 +02:00
parent 04d17ae167
commit 6b1ee34aa0
8 changed files with 94 additions and 6 deletions

View File

@@ -11534,6 +11534,10 @@ ex_folddo(eap)
{
linenr_T lnum;
#ifdef FEAT_CLIPBOARD
start_global_changes();
#endif
/* First set the marks for all lines closed/open. */
for (lnum = eap->line1; lnum <= eap->line2; ++lnum)
if (hasFolding(lnum, NULL, NULL) == (eap->cmdidx == CMD_folddoclosed))
@@ -11542,5 +11546,8 @@ ex_folddo(eap)
/* Execute the command on the marked lines. */
global_exe(eap->arg);
ml_clearmarked(); /* clear rest of the marks */
#ifdef FEAT_CLIPBOARD
end_global_changes();
#endif
}
#endif