]> code.delx.au - gnu-emacs-elpa/blobdiff - avy.el
avy.el (avy-goto-word-1): Quote punctuation
[gnu-emacs-elpa] / avy.el
diff --git a/avy.el b/avy.el
index 51ab60aa5f0a67140aea7af6eb1f1884c5051650..74144e34047a10c3330f21f0da528d968c13ba24 100644 (file)
--- a/avy.el
+++ b/avy.el
@@ -769,7 +769,7 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
                          "\\.")
                         ((and avy-word-punc-regexp
                               (string-match avy-word-punc-regexp str))
-                         str)
+                         (regexp-quote str))
                         (t
                          (concat
                           "\\b"