diff options
| author | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2024-02-18 20:47:41 +0300 |
|---|---|---|
| committer | Tom Dalziel <33435574+tomdl89@users.noreply.github.com> | 2024-03-25 09:52:22 +0100 |
| commit | 14dc693ed971053feb9596d4bc1b1de0b0006584 (patch) | |
| tree | 47f7b331f6e4bb0a2270e1525692c8a9d3d9dc18 | |
| parent | f686037a1a694bbfb379e61cc654cabc826e5771 (diff) | |
evil-surround.el: replace looking-at with looking-at-p
We don't use the match-data in the function, so let's call the
non-mutating version of `looking-back`
| -rw-r--r-- | evil-surround.el | 2 |
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)) |
