emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master e356df9 05/31: Reset to the first candidate when switching


From: Oleh Krehel
Subject: [elpa] master e356df9 05/31: Reset to the first candidate when switching directories
Date: Fri, 01 May 2015 14:28:43 +0000

branch: master
commit e356df9c1da6068f8c65f7858c30db5ad96ce148
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Reset to the first candidate when switching directories
    
    * ivy.el (ivy--cd): Update.
---
 ivy.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ivy.el b/ivy.el
index 0275a2c..8b95c9f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -336,6 +336,7 @@ If the input is empty, select the previous history element 
instead."
       (error "Unexpected")
     (setq ivy--old-cands nil)
     (setq ivy--old-re nil)
+    (setq ivy--index 0)
     (setq ivy--all-candidates
           (ivy--sorted-files (setq ivy--directory dir)))
     (setq ivy-text "")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]