summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xevil-surround.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-surround.el b/evil-surround.el
index 0ec6a44..b45ef6a 100755
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -284,7 +284,7 @@ Becomes this:
(interactive "<R>c")
(when (evil-surround-valid-char-p char)
(let* ((overlay (make-overlay beg end nil nil t))
- (pair (evil-surround-pair char))
+ (pair (or (and (boundp 'pair) pair) (evil-surround-pair char)))
(open (car pair))
(close (cdr pair))
(beg-pos (overlay-start overlay)))