summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Burkett <justin@burkett.cc>2017-12-10 11:38:01 -0500
committerJustin Burkett <justin@burkett.cc>2017-12-10 11:38:01 -0500
commit62255a99018c225bf01e8925239351f0b038b384 (patch)
tree99a5a18d9244f22f18147f1180325c45a61b7da9
parent757ddb93c7fb95373e029bd8404e01e9ef958815 (diff)
Fix regression for Emacs 26 caused by #125 fix
Emacs 26 saves this-command-keys across read-from-minibuffer, so make sure this-command-keys is cleared when we record it before read-from-minibuffer. Fixes #131
-rw-r--r--evil-surround.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-surround.el b/evil-surround.el
index 6dc165b..fbcaee7 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -96,7 +96,7 @@ Each item is of the form (OPERATOR . OPERATION)."
(defun evil-surround-read-from-minibuffer (&rest args)
(when evil-surround-record-repeat
- (evil-repeat-record (evil-this-command-keys)))
+ (evil-repeat-keystrokes 'post))
(let ((res (apply #'read-from-minibuffer args)))
(when evil-surround-record-repeat
(evil-repeat-record res))