* ido.el (ido-read-internal): Fix bug#14620.

This commit is contained in:
Leo Liu 2013-06-24 10:15:56 +08:00
parent fa55d2aaa2
commit 6c6268c83d
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2013-06-24 Leo Liu <sdl.web@gmail.com>
* ido.el (ido-read-internal): Fix bug#14620.
2013-06-23 Juanma Barranquero <lekktu@gmail.com>
* faces.el (face-documentation): Simplify.

View file

@ -2141,9 +2141,9 @@ If INITIAL is non-nil, it specifies the initial input string."
done t)
(setq ido-set-default-item t)))
((or (string-match "[/\\][^/\\]" ido-selected)
(and (memq system-type '(windows-nt ms-dos))
(string-match "\\`[a-zA-Z]:" ido-selected)))
((if (memq system-type '(windows-nt ms-dos))
(string-match "\\`[a-zA-Z]:\\|[\\][^\\]" ido-selected)
(string-match "/[^/]" ido-selected))
(ido-set-current-directory (file-name-directory ido-selected))
(setq ido-set-default-item t))