aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2024-06-19 15:29:44 +0200
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2024-06-19 15:37:07 +0200
commit0ad84c52169068021ec3372bf52503631f2261de (patch)
tree9a609e689b5bf2fe731b60d46e52109ab574e05a
parent07fe2dccb0a833b0c5ee7f24e98e63b29a529c95 (diff)
Combine after change calls during macro execution
Also temporarily disable pre- and post-command hooks
-rw-r--r--evil-commands.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/evil-commands.el b/evil-commands.el
index 5605f14..4ad249f 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -2552,7 +2552,9 @@ when called interactively."
(t
(condition-case err
(evil-with-single-undo
- (execute-kbd-macro macro count))
+ (let (pre-command-hook post-command-hook) ; For performance
+ (combine-after-change-calls
+ (execute-kbd-macro macro count))))
;; enter Normal state if the macro fails
(error
(evil-normal-state)