summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-08-06 18:17:11 +0200
committerBram Moolenaar <Bram@vim.org>2014-08-06 18:17:11 +0200
commit6b1ee34aa0236b50f675f3bbcd9bf0b7a3384f7f (patch)
tree0f3f8952da9b62bc8d344394f549cbcf4fdf4f3b /src/ex_cmds.c
parent04d17ae1678846c4857cd86cf3eaf47d60c04c85 (diff)
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 62621bfa57..df6700d64b 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);