diff options
| author | Tom Dalziel <33435574+tomdl89@users.noreply.github.com> | 2022-02-13 23:49:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-13 23:49:11 +0100 |
| commit | 0646631de42db7f93c002d4430191f86f7718b63 (patch) | |
| tree | b0b6dd336af2bb823cdc37d87925d1b3361fbe16 | |
| parent | 787455068f56f29493cc1e33d4e5c2986ea25577 (diff) | |
Use `end-kbd-macro` to fix regression clearing registers (#1582)
| -rw-r--r-- | evil-commands.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/evil-commands.el b/evil-commands.el index 3584616..d09da35 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -2314,7 +2314,8 @@ The return value is the yanked text." (defun evil-end-and-return-macro () "Like `kmacro-end-macro' but also return the macro. Remove \\<evil-insert-state-map>\\[evil-execute-in-normal-state] from the end." - (kmacro-end-macro nil) + ;; `end-kbd-macro' rather than `kmacro-end-macro' to allow clearing registers + (end-kbd-macro nil #'kmacro-loop-setup-function) (let ((end-keys-seq (append evil-execute-normal-keys nil)) (last-kbd-macro-seq (append last-kbd-macro nil))) (unless last-kbd-macro-seq |
