avy.el (avy-goto-char-in-line): Quote char

Fixes #56
This commit is contained in:
Oleh Krehel 2015-06-02 16:57:50 +02:00
parent 78d20e0b02
commit 1350ab318e

2
avy.el
View File

@ -692,7 +692,7 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
(save-restriction
(narrow-to-region (line-beginning-position)
(line-end-position))
(avy--regex-candidates (string char)))
(avy--regex-candidates (regexp-quote (string char))))
(avy--style-fn avy-style))))))
;;;###autoload