summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.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_cmds2.c
parent04d17ae1678846c4857cd86cf3eaf47d60c04c85 (diff)
downloadvim-6b1ee34aa0236b50f675f3bbcd9bf0b7a3384f7f.zip
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)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index c502ff852..908552d58 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2464,6 +2464,9 @@ ex_listdo(eap)
* great speed improvement. */
save_ei = au_event_disable(",Syntax");
#endif
+#ifdef FEAT_CLIPBOARD
+ start_global_changes();
+#endif
if (eap->cmdidx == CMD_windo
|| eap->cmdidx == CMD_tabdo
@@ -2591,6 +2594,9 @@ ex_listdo(eap)
curbuf->b_fname, TRUE, curbuf);
}
#endif
+#ifdef FEAT_CLIPBOARD
+ end_global_changes();
+#endif
}
/*
@@ -2750,8 +2756,8 @@ source_runtime(name, all)
* used.
* Returns OK when at least one match found, FAIL otherwise.
*
- * If "name" is NULL calls callback for each entry in runtimepath. Cookie is
- * passed by reference in this case, setting it to NULL indicates that callback
+ * If "name" is NULL calls callback for each entry in runtimepath. Cookie is
+ * passed by reference in this case, setting it to NULL indicates that callback
* has done its job.
*/
int