branch: master
commit b39e20cedae2ed3c4dc374479d5baaed1f26b286
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    ivy.el (ivy-alt-done): Ensure the trailing slash for directories
    
    * ivy.el (ivy-alt-done): Update.
---
 ivy.el |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

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

Reply via email to