changeset 78030:109ec6cd33be

(ido-find-file-in-dir): Don't signal an error for empty directories.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 20 Jun 2007 15:17:17 +0000
parents 64fcc07373bb
children 8ed0b9c9f6fc
files lisp/ido.el
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ido.el	Wed Jun 20 08:49:12 2007 +0000
+++ b/lisp/ido.el	Wed Jun 20 15:17:17 2007 +0000
@@ -3994,8 +3994,7 @@
 (defun ido-find-file-in-dir (dir)
   "Switch to another file starting from DIR."
   (interactive "DDir: ")
-  (if (not (equal (substring dir -1) "/"))
-      (setq dir (concat dir "/")))
+  (setq dir (file-name-as-directory dir))
   (ido-file-internal ido-default-file-method nil dir nil nil nil 'ignore))
 
 ;;;###autoload