summaryrefslogtreecommitdiff
path: root/evil-surround.el
diff options
context:
space:
mode:
Diffstat (limited to 'evil-surround.el')
-rw-r--r--evil-surround.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-surround.el b/evil-surround.el
index b68329d..03eec8f 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -222,7 +222,7 @@ Does not modify the buffer."
(save-excursion
(save-match-data
(goto-char (evil-range-beginning range))
- (while (looking-at regexp) (forward-char))
+ (while (looking-at-p regexp) (forward-char))
(let ((new-beg (point)))
(evil-set-range-beginning range new-beg)
(goto-char (evil-range-end range))