branch: master
commit e05e3b7853be8267335bcc4419863c3440ad0942
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-read): Keep the last ivy--index for :dynamic-collection
---
ivy.el | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ivy.el b/ivy.el
index 96e20dc..119f76c 100644
--- a/ivy.el
+++ b/ivy.el
@@ -675,6 +675,8 @@ candidates with each input."
coll))
(setq coll (cons preselect coll))))
(setq ivy--index (or
+ (and dynamic-collection
+ ivy--index)
(and preselect
(ivy--preselect-index
coll initial-input preselect))