]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-read): Keep the last ivy--index for :dynamic-collection
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 12 May 2015 13:35:06 +0000 (15:35 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 12 May 2015 13:35:06 +0000 (15:35 +0200)
ivy.el

diff --git a/ivy.el b/ivy.el
index 96e20dc629522213686e9ebadb71df8e09229f8f..119f76c2389b47a737a08feb2d001ea1be3c238b 100644 (file)
--- 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))