From 1c1e6fc418ae9354beb19a099283316576c455ba Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 2 Oct 2015 12:30:10 +0200 Subject: [PATCH] ivy.el (ivy--reset-state): Less strict on :preselect --- ivy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy.el b/ivy.el index f9d093b78..25ea6c6ae 100644 --- a/ivy.el +++ b/ivy.el @@ -998,7 +998,7 @@ This is useful for recursive `ivy-read'." (when preselect (unless (or (and require-match (not (eq collection 'internal-complete-buffer))) - (let ((re (format "\\`%s" (regexp-quote preselect)))) + (let ((re (regexp-quote preselect))) (cl-find-if (lambda (x) (string-match re x)) coll))) (setq coll (cons preselect coll)))) -- 2.39.2