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

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

[elpa] master aacba19 229/348: ivy.el (ivy--directory-done): Check if iv


From: Oleh Krehel
Subject: [elpa] master aacba19 229/348: ivy.el (ivy--directory-done): Check if ivy-text is a proper dir
Date: Sat, 8 Apr 2017 11:04:03 -0400 (EDT)

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

    ivy.el (ivy--directory-done): Check if ivy-text is a proper dir
---
 ivy.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ivy.el b/ivy.el
index 03a6c92..36bc0a1 100644
--- a/ivy.el
+++ b/ivy.el
@@ -637,6 +637,8 @@ When ARG is t, exit with current text, ignoring the 
candidates."
         (setq dir (ivy-expand-file-if-directory ivy--current)))
        (ivy--cd dir)
        (ivy--exhibit))
+      ((file-exists-p ivy-text)
+       (ivy--cd (file-name-as-directory ivy-text)))
       ((or (and (equal ivy--directory "/")
                 (string-match "\\`[^/]+:.*:.*\\'" ivy-text))
            (string-match "\\`/[^/]+:.*:.*\\'" ivy-text))



reply via email to

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