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

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

[elpa] master 6666cf8 099/167: Fix directory validity check


From: Oleh Krehel
Subject: [elpa] master 6666cf8 099/167: Fix directory validity check
Date: Tue, 08 Dec 2015 10:50:16 +0000

branch: master
commit 6666cf8c863f02d9a81715a7801d7345ed45d942
Author: Stephen Whipple <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Fix directory validity check
    
    Directory validity check should be based on `ivy-text` and
    `ivy--directory` rather than only `ivy-text`.
    
    Fixes #283
    Fixes #284
---
 ivy.el |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ivy.el b/ivy.el
index 5aa109d..3e1cd31 100644
--- a/ivy.el
+++ b/ivy.el
@@ -393,9 +393,9 @@ When ARG is t, exit with current text, ignoring the 
candidates."
                  (and
                   (not (equal ivy-text ""))
                   (ignore-errors
-                    (file-directory-p ivy-text))
-                  (setq dir (expand-file-name
-                             ivy-text ivy--directory)))
+                    (file-directory-p
+                     (setq dir (expand-file-name
+                                ivy-text ivy--directory)))))
                  (and
                   (not (string= ivy--current "./"))
                   (cl-plusp ivy--length)



reply via email to

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