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

    ivy.el (ivy--reset-state): Fix ivy-resume for files
---
 ivy.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index fe7eeff..6d538a3 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1438,7 +1438,9 @@ This is useful for recursive `ivy-read'."
                                 :test #'equal)))
                (setq coll (all-completions "" collection predicate))))
             ((eq collection 'read-file-name-internal)
-             (if (and initial-input (file-directory-p initial-input))
+             (if (and initial-input
+                      (not (equal initial-input ""))
+                      (file-directory-p initial-input))
                  (progn
                    (setq ivy--directory initial-input)
                    (setq initial-input nil))

Reply via email to