branch: master
commit 1c1e6fc418ae9354beb19a099283316576c455ba
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--reset-state): Less strict on :preselect
---
ivy.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index f9d093b..25ea6c6 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))))