aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-08-25 10:43:00 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-08-25 11:16:22 -0400
commitc826ebd3de7f73d360a8032127ed9d9db0543d8a (patch)
tree17e09b72d75127897be5eabeac5b69a18fb0298e /src/nvim/ex_cmds2.c
parentc79bf4ec99951e42736522bd9362dfe347522c8e (diff)
downloadrneovim-c826ebd3de7f73d360a8032127ed9d9db0543d8a.tar.gz
rneovim-c826ebd3de7f73d360a8032127ed9d9db0543d8a.tar.bz2
rneovim-c826ebd3de7f73d360a8032127ed9d9db0543d8a.zip
perf: Disable clipboard in do_cmdline().
For any script--not just `:global` commands--there is no reason to update the system clipboard until the script is finished, so disable it during do_cmdline(). Before this change, 'clipboard=unnamedplus' causes scripted editing to be extremely slow (e.g. `:normal` in a while-loop). Closes #3534
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index da478f96dc..d0a17ed099 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -1983,8 +1983,6 @@ void ex_listdo(exarg_T *eap)
save_ei = au_event_disable(",Syntax");
}
- start_batch_changes();
-
if (eap->cmdidx == CMD_windo
|| eap->cmdidx == CMD_tabdo
|| P_HID(curbuf)
@@ -2181,7 +2179,6 @@ void ex_listdo(exarg_T *eap)
apply_autocmds(EVENT_SYNTAX, curbuf->b_p_syn,
curbuf->b_fname, true, curbuf);
}
- end_batch_changes();
}
/// Add files[count] to the arglist of the current window after arg "after".