branch: master
commit 314650189a3331354561300cb11de79e524f9de5
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-resume): Don't regexp-quote preselect
`ivy--preselect-index' uses `cl-position' before trying to match regex,
so the string needs to be as is.
Fixes #245
---
ivy.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index bf3981a..8839ba6 100644
--- a/ivy.el
+++ b/ivy.el
@@ -454,7 +454,7 @@ If the text hasn't changed as a result, forward to
`ivy-alt-done'."
:history (ivy-state-history ivy-last)
:preselect (unless (eq (ivy-state-collection ivy-last)
'read-file-name-internal)
- (regexp-quote ivy--current))
+ ivy--current)
:keymap (ivy-state-keymap ivy-last)
:update-fn (ivy-state-update-fn ivy-last)
:sort (ivy-state-sort ivy-last)