branch: master commit ecb93a6b1007e6624f5bc4597dfc62458f6ff01b Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
Regexp-quote name of candidate buffer to be preselected Fixes #128 --- ivy.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ivy.el b/ivy.el index 193dd09..15ced91 100644 --- a/ivy.el +++ b/ivy.el @@ -713,7 +713,7 @@ candidates with each input." (setq coll (cl-sort (copy-sequence coll) sort-fn)))))) (when preselect (unless (or require-match - (let ((re (format "\\`%s" preselect))) + (let ((re (format "\\`%s" (regexp-quote preselect)))) (cl-find-if (lambda (x) (string-match re x)) coll))) (setq coll (cons preselect coll))))