]> git.eshelyaron.com Git - emacs.git/commitdiff
* ido.el (ido-read-internal): Fix bug#14620.
authorLeo Liu <sdl.web@gmail.com>
Mon, 24 Jun 2013 02:15:56 +0000 (10:15 +0800)
committerLeo Liu <sdl.web@gmail.com>
Mon, 24 Jun 2013 02:15:56 +0000 (10:15 +0800)
lisp/ChangeLog
lisp/ido.el

index 27e2b824953e7a8bffe025ec772bb6a9c89f2fad..440f66a9fe1052c91b1e15099645ea9b3aa8f182 100644 (file)
@@ -1,3 +1,7 @@
+2013-06-24  Leo Liu  <sdl.web@gmail.com>
+
+       * ido.el (ido-read-internal): Fix bug#14620.
+
 2013-06-23  Juanma Barranquero  <lekktu@gmail.com>
 
        * faces.el (face-documentation): Simplify.
index 47c05b080f783203105f5b5a97588180f5deb54e..78d0112f4c4dc0295643afefdf1bc21bbb82cc36 100644 (file)
@@ -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))