branch: master
commit aacba19ad5f4e9a9e0767376b714b47db3320bb7
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    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