summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames N. V. Cash <james.nvc@gmail.com>2019-12-13 10:44:42 -0500
committerJames N. V. Cash <james.nvc@gmail.com>2019-12-13 10:44:42 -0500
commit01eb3c0e4f4d5992902641be79fb823067f493db (patch)
tree92fcfaea34c8c88b20ef38e008ca9fb10dc63d80
parenta3803cfb514180de3ce14727b293afd92e10f4bd (diff)
Remove apparently-unnecessary run-at-time
Fixes issue when surrounding with a tag from a macro
-rw-r--r--evil-surround.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/evil-surround.el b/evil-surround.el
index 6a92d08..da4e549 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -91,11 +91,9 @@ Each item is of the form (OPERATOR . OPERATION)."
(define-key map ">" (lambda ()
(interactive)
(call-interactively 'self-insert-command)
- (run-at-time nil nil
- (lambda ()
- (when (active-minibuffer-window)
- (select-window (active-minibuffer-window))
- (exit-minibuffer))))))
+ (when (active-minibuffer-window)
+ (select-window (active-minibuffer-window))
+ (exit-minibuffer))))
map)
"Keymap used by `evil-surround-read-tag'.")