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

    ivy.el (ivy--directory-done): Fix broken "/ssh:"
    
    Reminder: (file-exists-p "/ssh:") throws.
---
 ivy.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 524d96f..431771b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -642,7 +642,7 @@ When ARG is t, exit with current text, ignoring the 
candidates."
        (ivy--cd dir)
        (ivy--exhibit))
       ((and (not (string= ivy-text ""))
-            (file-exists-p ivy-text))
+            (ignore-errors (file-exists-p ivy-text)))
        (if (file-directory-p ivy-text)
            (ivy--cd (expand-file-name
                      (file-name-as-directory ivy-text) ivy--directory))

Reply via email to