branch: master commit 6666cf8c863f02d9a81715a7801d7345ed45d942 Author: Stephen Whipple <s...@wicdmedia.org> Commit: Oleh Krehel <ohwoeo...@gmail.com>
Fix directory validity check Directory validity check should be based on `ivy-text` and `ivy--directory` rather than only `ivy-text`. Fixes #283 Fixes #284 --- ivy.el | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ivy.el b/ivy.el index 5aa109d..3e1cd31 100644 --- a/ivy.el +++ b/ivy.el @@ -393,9 +393,9 @@ When ARG is t, exit with current text, ignoring the candidates." (and (not (equal ivy-text "")) (ignore-errors - (file-directory-p ivy-text)) - (setq dir (expand-file-name - ivy-text ivy--directory))) + (file-directory-p + (setq dir (expand-file-name + ivy-text ivy--directory))))) (and (not (string= ivy--current "./")) (cl-plusp ivy--length)