branch: master commit 7ed5b06b3ad555401484a0b630fcf2883f8204b2 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy--preselect-index): Don't use regexp-quote I don't remember why `regexp-quote' was needed in the first place. But it's useful to have it as a regex at least for `lispy--occur-preselet' which returns things like "^42" to preselect line 42. --- ivy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy.el b/ivy.el index 6c3f522..5630f1b 100644 --- a/ivy.el +++ b/ivy.el @@ -1592,7 +1592,7 @@ Minibuffer bindings: preselect) ((cl-position preselect candidates :test #'equal)) ((stringp preselect) - (let ((re (regexp-quote preselect))) + (let ((re preselect)) (cl-position-if (lambda (x) (string-match re x))