diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-08-06 18:17:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-08-06 18:17:11 +0200 |
commit | 6b1ee34aa0236b50f675f3bbcd9bf0b7a3384f7f (patch) | |
tree | 0f3f8952da9b62bc8d344394f549cbcf4fdf4f3b /src/ex_cmds.c | |
parent | 04d17ae1678846c4857cd86cf3eaf47d60c04c85 (diff) | |
download | vim-git-6b1ee34aa0236b50f675f3bbcd9bf0b7a3384f7f.tar.gz |
updated for version 7.4.396v7.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)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 62621bfa5..df6700d64 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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); |