branch: master
commit 1240d882355291b445ae7f2499f114f3e5c079ac
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-read): Check string
Re #1326
---
ivy.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index e099757..9f214fd 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1645,7 +1645,8 @@ customizations apply to the current completion session."
(t resize-mini-windows))))
(if (and ivy-auto-select-single-candidate
(= (length ivy--all-candidates) 1)
- (not (file-remote-p ivy--directory)))
+ (and (stringp ivy--directory)
+ (not (file-remote-p ivy--directory))))
(progn
(setf (ivy-state-current ivy-last)
(car ivy--all-candidates))