0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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

@@ -5514,7 +5514,15 @@ ex_global(eap)
smsg((char_u *)_("Pattern not found: %s"), pat);
}
else
{
#ifdef FEAT_CLIPBOARD
start_global_changes();
#endif
global_exe(cmd);
#ifdef FEAT_CLIPBOARD
end_global_changes();
#endif
}
ml_clearmarked(); /* clear rest of the marks */
vim_regfree(regmatch.regprog);