diff options
author | Glenn Morris <rgm@gnu.org> | 2009-12-02 03:00:41 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2009-12-02 03:00:41 +0000 |
commit | b2d5f31abf3d04628c9fe858fd80592e4f649097 (patch) | |
tree | 75be13dcbde92fd4c761a644ee3049cf7ad448ce /lisp/ido.el | |
parent | c710ac3c08b7657f775b5d5f63bf98d3c71f2a5d (diff) | |
download | emacs-b2d5f31abf3d04628c9fe858fd80592e4f649097.tar.gz |
Andreas Politz <politza at fh-trier.de> (tiny change)
(ido-file-internal): Handle filenames at point that do not have a
directory part. (Bug#5049)
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)))))) |