branch: master commit cf3ac8f0e401d573ba17027eee00627dfeda8537 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy-done): Update wrt globs Re #55 --- ivy.el | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ivy.el b/ivy.el index 89c6e51..9019296 100644 --- a/ivy.el +++ b/ivy.el @@ -171,12 +171,12 @@ When non-nil, it should contain one %d.") (delete-minibuffer-contents) (when (cond (ivy--directory (insert - (cond ((string= ivy-text "") + (cond ((string-match "\\*" ivy--current) + ivy--current) + ((string= ivy-text "") (if (equal ivy--current "./") ivy--directory - (if (string-match "\\*" ivy--current) - ivy--current - (expand-file-name ivy--current ivy--directory)))) + (expand-file-name ivy--current ivy--directory))) ((zerop ivy--length) (if (string-match "\\*" ivy-text) ivy-text @@ -678,6 +678,8 @@ When GREEDY is non-nil, join words in a greedy way." ;; get out of the prompt area (constrain-to-field nil (point-max))))) +(defvar inhibit-message) + (defun ivy--exhibit () "Insert Ivy completions display. Should be run via minibuffer `post-command-hook'."