* ido.el (ido-wide-find-dirs-or-files): Respect ido-case-fold (tiny change)
authorEyal Lotem <eyal.lotem@gmail.com>
Wed, 12 Jun 2013 07:25:05 +0000 (00:25 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 12 Jun 2013 07:25:05 +0000 (00:25 -0700)
Fixes: debbugs:13003

lisp/ChangeLog
lisp/ido.el

index 4e9eb15..62b1581 100644 (file)
@@ -4,6 +4,8 @@
 
 2013-06-12  Eyal Lotem  <eyal.lotem@gmail.com>  (tiny change)
 
+       * ido.el (ido-wide-find-dirs-or-files): Respect ido-case-fold.
+
        * ido.el (ido-delete-ignored-files): New function,
        split from ido-make-file-list-1.
        (ido-wide-find-dirs-or-files): Maybe ignore files.  (Bug#13003)
index 5633166..b73094f 100644 (file)
@@ -3288,7 +3288,7 @@ for first matching file."
            (shell-command-to-string
             (concat "find "
                     (shell-quote-argument dir)
-                    " -name "
+                    (if ido-case-fold " -iname " " -name ")
                     (shell-quote-argument
                      (concat (if prefix "" "*") file "*"))
                     " -type " (if finddir "d" "f") " -print")))))