Skip to content

Commit

Permalink
ivy-immediate-done should use ivy--directory
Browse files Browse the repository at this point in the history
* ivy.el (ivy-immediate-done): When completing file names, expand the
  file name properly.

Fixes #275
  • Loading branch information
abo-abo committed Oct 23, 2015
1 parent 1af25f6 commit a11c978
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ivy.el
Expand Up @@ -480,7 +480,10 @@ If the text hasn't changed as a result, forward to `ivy-alt-done'."
"Exit the minibuffer with the current input."
(interactive)
(delete-minibuffer-contents)
(insert (setq ivy--current ivy-text))
(insert (setq ivy--current
(if ivy--directory
(expand-file-name ivy-text ivy--directory)
ivy-text)))
(setq ivy-exit 'done)
(exit-minibuffer))

Expand Down

0 comments on commit a11c978

Please sign in to comment.