diff options
| author | Tom Dalziel <tom_dl@hotmail.com> | 2024-06-19 15:29:44 +0200 |
|---|---|---|
| committer | Tom Dalziel <33435574+tomdl89@users.noreply.github.com> | 2024-06-19 15:37:07 +0200 |
| commit | 0ad84c52169068021ec3372bf52503631f2261de (patch) | |
| tree | 9a609e689b5bf2fe731b60d46e52109ab574e05a | |
| parent | 07fe2dccb0a833b0c5ee7f24e98e63b29a529c95 (diff) | |
Combine after change calls during macro execution
Also temporarily disable pre- and post-command hooks
| -rw-r--r-- | evil-commands.el | 4 |
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) |
