branch: master commit 1d3f0808f1e1c8cd517e738a62be7deef342ce22 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy--magic-file-slash): Allow "non-existing-dir//" Fixes #480 --- ivy.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ivy.el b/ivy.el index 7d705c8..61103b2 100644 --- a/ivy.el +++ b/ivy.el @@ -1963,7 +1963,10 @@ depending on the number of candidates." (= ivy--length 1) (not (string= ivy-text "/"))) (let ((default-directory ivy--directory)) - (file-directory-p ivy--current))) + (and + (not (equal ivy--current "")) + (file-directory-p ivy--current) + (file-exists-p ivy--current)))) (ivy--cd (expand-file-name ivy--current ivy--directory))))) (defun ivy--exhibit ()