diff options
Diffstat (limited to 'lisp/ido.el')
-rw-r--r-- | lisp/ido.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index daa090d5d6f..4a4ecdcdb1a 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -2142,8 +2142,9 @@ If INITIAL is non-nil, it specifies the initial input string." (setq ido-set-default-item t))) ((string-match (if (memq system-type '(windows-nt ms-dos)) - "\\`[a-zA-Z]:\\|[\\][^\\]" - "/[^/]") ido-selected) + "\\`[a-zA-Z]:\\|[/\\][^/\\]" + "/[^/]") + ido-selected) (ido-set-current-directory (file-name-directory ido-selected)) (setq ido-set-default-item t)) |