comparison src/ex_docmd.c @ 6116:7766142fc7d3 v7.4.396

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)
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Aug 2014 18:17:11 +0200
parents f9fa2e506b9f
children 18ac55444b37
comparison
equal deleted inserted replaced
6115:fe7b9f6ad226 6116:7766142fc7d3
11532 ex_folddo(eap) 11532 ex_folddo(eap)
11533 exarg_T *eap; 11533 exarg_T *eap;
11534 { 11534 {
11535 linenr_T lnum; 11535 linenr_T lnum;
11536 11536
11537 #ifdef FEAT_CLIPBOARD
11538 start_global_changes();
11539 #endif
11540
11537 /* First set the marks for all lines closed/open. */ 11541 /* First set the marks for all lines closed/open. */
11538 for (lnum = eap->line1; lnum <= eap->line2; ++lnum) 11542 for (lnum = eap->line1; lnum <= eap->line2; ++lnum)
11539 if (hasFolding(lnum, NULL, NULL) == (eap->cmdidx == CMD_folddoclosed)) 11543 if (hasFolding(lnum, NULL, NULL) == (eap->cmdidx == CMD_folddoclosed))
11540 ml_setmarked(lnum); 11544 ml_setmarked(lnum);
11541 11545
11542 /* Execute the command on the marked lines. */ 11546 /* Execute the command on the marked lines. */
11543 global_exe(eap->arg); 11547 global_exe(eap->arg);
11544 ml_clearmarked(); /* clear rest of the marks */ 11548 ml_clearmarked(); /* clear rest of the marks */
11545 } 11549 #ifdef FEAT_CLIPBOARD
11546 #endif 11550 end_global_changes();
11551 #endif
11552 }
11553 #endif