summaryrefslogtreecommitdiff
path: root/lisp/ido.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2013-06-24 10:15:56 +0800
committerLeo Liu <sdl.web@gmail.com>2013-06-24 10:15:56 +0800
commit6c6268c83d18e1a4268be10064ce4ce86c60004f (patch)
treebdec6d65872d2f3be5290028d2e66e13b4476e03 /lisp/ido.el
parentfa55d2aaa23d5916b87a6980c9606466e07df124 (diff)
downloademacs-6c6268c83d18e1a4268be10064ce4ce86c60004f.tar.gz
* ido.el (ido-read-internal): Fix bug#14620.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r--lisp/ido.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 47c05b080f7..78d0112f4c4 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -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))