branch: master commit f6dd9cdff6f9dc6c16e2ee2990a797d45bb05b41 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy-alt-done): Fix up last commit --- ivy.el | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ivy.el b/ivy.el index 51721a5..24bc824 100644 --- a/ivy.el +++ b/ivy.el @@ -374,9 +374,11 @@ When ARG is t, exit with current text, ignoring the candidates." (ivy-immediate-done)) ((and ivy--directory (or - (and (file-directory-p ivy-text) - (setq dir (expand-file-name - ivy-text ivy--directory))) + (and + (not (equal ivy-text "")) + (file-directory-p ivy-text) + (setq dir (expand-file-name + ivy-text ivy--directory))) (and (not (string= ivy--current "./")) (cl-plusp ivy--length)