Skip to content

Commit

Permalink
Merge pull request #1405 from aaronjensen/evil-undo-abort-repeat
Browse files Browse the repository at this point in the history
Abort repeat with evil-undo
  • Loading branch information
tomdl89 authored Mar 5, 2021
2 parents a50a15f + 4aa3c5a commit f5ab7ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions evil-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -1702,12 +1702,14 @@ of the block."

(evil-define-command evil-undo (count)
"Undo COUNT changes in buffer using `evil-undo-function'."
:repeat abort
(interactive "*p")
(evil--check-undo-system)
(funcall evil-undo-function count))

(evil-define-command evil-redo (count)
"Undo COUNT changes in buffer using `evil-redo-function'."
:repeat abort
(interactive "*p")
(evil--check-undo-system)
(funcall evil-redo-function count))
Expand Down

0 comments on commit f5ab7ff

Please sign in to comment.