diff lisp/ls-lisp.el @ 81580:e870f4d7bcdb

Fix last change.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 23 Jun 2007 10:05:14 +0000
parents 22fda78091af
children 95b281a8d13c
line wrap: on
line diff
--- a/lisp/ls-lisp.el	Sat Jun 23 09:45:58 2007 +0000
+++ b/lisp/ls-lisp.el	Sat Jun 23 10:05:14 2007 +0000
@@ -230,9 +230,9 @@
 	;; there is no wildcard, only a directory name.
 	(if (and ls-lisp-support-shell-wildcards
 		 (string-match "[[?*]" file)
-		 ;; Prefer an existing directory to wildcards, like
+		 ;; Prefer an existing file to wildcards, like
 		 ;; dired-noselect does.
-		 (not (file-directory-p file)))
+		 (not (file-exists-p file)))
 	    (progn
 	      (or (not (eq (aref file (1- (length file))) ?/))
 		  (setq file (substring file 0 (1- (length file)))))