summaryrefslogtreecommitdiff
path: root/evil-surround.el
diff options
context:
space:
mode:
authorTim Harper <timcharper@gmail.com>2016-02-26 08:21:23 -0700
committerTim Harper <timcharper@gmail.com>2016-02-26 08:21:23 -0700
commit0eeef7a3a9359f3e3147a2f4877fa3b56dcea944 (patch)
tree7e1c44f5a309600891f148d8f954117ecdb410cd /evil-surround.el
parenta70e34164e16810ddfd5d608e598f9d975a3250e (diff)
parentd5e1c9ec49f0c21a73a1b84d9360f496408ce7c7 (diff)
Merge pull request #68 from hlissner/master
Fix repetitive prompts with function pairs in block surrounds
Diffstat (limited to 'evil-surround.el')
-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)))