branch: master
commit b91870eb1c4861ad5ef7700caf5c45ec192d84df
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Fix /ssh: and /sudo:: broken in 71695df
* ivy.el (ivy-alt-done): `file-directory-p' errors when given "/ssh:" or
"/sudo::".
Re #283
---
ivy.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index 73d2f8a..2457f3d 100644
--- a/ivy.el
+++ b/ivy.el
@@ -387,7 +387,8 @@ When ARG is t, exit with current text, ignoring the
candidates."
(or
(and
(not (equal ivy-text ""))
- (file-directory-p ivy-text)
+ (ignore-errors
+ (file-directory-p ivy-text))
(setq dir (expand-file-name
ivy-text ivy--directory)))
(and