* counsel.el (counsel-find-file): Use expand-file-name after getting a
file name at point.
Fixes #430
(find-file (expand-file-name x ivy--directory))))
:preselect (when counsel-find-file-at-point
(require 'ffap)
(find-file (expand-file-name x ivy--directory))))
:preselect (when counsel-find-file-at-point
(require 'ffap)
+ (let ((f (ffap-guesser)))
+ (when f (expand-file-name f))))
:require-match 'confirm-after-completion
:history 'file-name-history
:keymap counsel-find-file-map))
:require-match 'confirm-after-completion
:history 'file-name-history
:keymap counsel-find-file-map))