From 6c3e2c3de5ee118c8a8da180945ca63c059649e9 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Mon, 24 Jun 2013 12:08:10 +0800 Subject: [PATCH] Simplify last change to ido.el --- lisp/ido.el | 6 +++--- 1 file 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)) -- 2.39.2