Skip to content

Commit

Permalink
Combine after change calls during macro execution
Browse files Browse the repository at this point in the history
Also temporarily disable pre- and post-command hooks
  • Loading branch information
tomdl89 committed Jun 19, 2024
1 parent 07fe2dc commit fae9b37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evil-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fae9b37

Please sign in to comment.