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

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

[elpa] master f0de338 198/272: ivy.el (ivy--directory-done): Fix when iv


From: Oleh Krehel
Subject: [elpa] master f0de338 198/272: ivy.el (ivy--directory-done): Fix when ivy-text is a dir
Date: Mon, 25 Apr 2016 10:13:25 +0000

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

    ivy.el (ivy--directory-done): Fix when ivy-text is a dir
    
    But when it's different from `ivy--current'.
    
    Fixes #448
---
 ivy.el |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/ivy.el b/ivy.el
index 386f01c..ed0f232 100644
--- a/ivy.el
+++ b/ivy.el
@@ -552,14 +552,10 @@ When ARG is t, exit with current text, ignoring the 
candidates."
        (setq dir (concat ivy-text ivy--directory))
        (ivy--cd dir)
        (ivy--exhibit))
-      ((or
-        (and
-         (not (string= ivy-text ""))
-         (setq dir (ivy-expand-file-if-directory ivy-text)))
-        (and
-         (> ivy--length 0)
-         (not (string= ivy--current "./"))
-         (setq dir (ivy-expand-file-if-directory ivy--current))))
+      ((and
+        (> ivy--length 0)
+        (not (string= ivy--current "./"))
+        (setq dir (ivy-expand-file-if-directory ivy--current)))
        (ivy--cd dir)
        (ivy--exhibit))
       ((or (and (equal ivy--directory "/")



reply via email to

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