(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
;; 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'."