summaryrefslogtreecommitdiff
path: root/lisp/ido.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2013-06-25 09:04:06 +0800
committerLeo Liu <sdl.web@gmail.com>2013-06-25 09:04:06 +0800
commitf42d8237f706740d23f03ac8f1f5bc8b5d41afe5 (patch)
tree6043457775db92b66279faa56076a34e429fb764 /lisp/ido.el
parente31106e80a607df161daf91890fa4a4c816a0bdb (diff)
downloademacs-f42d8237f706740d23f03ac8f1f5bc8b5d41afe5.tar.gz
* ido.el (ido-read-internal): Allow forward slash on windows.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r--lisp/ido.el5
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))