branch: elpa/evil
commit 0ad84c52169068021ec3372bf52503631f2261de
Author: Tom Dalziel <tom...@hotmail.com>
Commit: Tom Dalziel <33435574+tomd...@users.noreply.github.com>

    Combine after change calls during macro execution
    
    Also temporarily disable pre- and post-command hooks
---
 evil-commands.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/evil-commands.el b/evil-commands.el
index 5605f146d6..4ad249fc9d 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)

Reply via email to