diff options
Diffstat (limited to 'lisp/ido.el')
-rw-r--r-- | lisp/ido.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 7317540db32..ded7cbbfb4d 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -2288,7 +2288,7 @@ If cursor is not at the end of the user input, move to end of input." (ffap-guesser) (ffap-string-at-point)))) (not (string-match "^http:/" fn)) - (setq d (file-name-directory fn)) + (setq d (file-name-directory (expand-file-name fn))) (file-directory-p d)) (setq ido-current-directory d) (setq initial (file-name-nondirectory fn)))))) |