summaryrefslogtreecommitdiff
path: root/lisp/ido.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2013-06-24 12:08:10 +0800
committerLeo Liu <sdl.web@gmail.com>2013-06-24 12:08:10 +0800
commit6c3e2c3de5ee118c8a8da180945ca63c059649e9 (patch)
treec7c78d2d50bee942b5f6d43dfb0916d7ff094566 /lisp/ido.el
parent6c6268c83d18e1a4268be10064ce4ce86c60004f (diff)
downloademacs-6c3e2c3de5ee118c8a8da180945ca63c059649e9.tar.gz
Simplify last change to ido.el
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 78d0112f4c4..daa090d5d6f 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)))
- ((if (memq system-type '(windows-nt ms-dos))
- (string-match "\\`[a-zA-Z]:\\|[\\][^\\]" ido-selected)
- (string-match "/[^/]" ido-selected))
+ ((string-match (if (memq system-type '(windows-nt ms-dos))
+ "\\`[a-zA-Z]:\\|[\\][^\\]"
+ "/[^/]") ido-selected)
(ido-set-current-directory (file-name-directory ido-selected))
(setq ido-set-default-item t))