summaryrefslogtreecommitdiff
path: root/evil-surround.el
diff options
context:
space:
mode:
Diffstat (limited to 'evil-surround.el')
-rw-r--r--evil-surround.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/evil-surround.el b/evil-surround.el
index 8611e59..018a5b6 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -102,10 +102,12 @@ Each item is of the form (OPERATOR . OPERATION)."
"The previously deleted LEFT region.")
(defun evil-surround-read-from-minibuffer (&rest args)
- (when evil-surround-record-repeat
+ (when (or evil-surround-record-repeat
+ (evil-repeat-recording-p))
(evil-repeat-keystrokes 'post))
(let ((res (apply #'read-from-minibuffer args)))
- (when evil-surround-record-repeat
+ (when (or evil-surround-record-repeat
+ (evil-repeat-recording-p))
(evil-repeat-record res))
res))