From b3da0db521b7c6c9827c533425ea277d687a1d6d Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 23 Nov 2004 15:18:16 +0000 Subject: [PATCH] (ido-read-internal): Fix require-match check when ido-directory-too-big is set. --- lisp/ido.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ido.el b/lisp/ido.el index 8d55887eae5..10fac08196a 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -1763,7 +1763,10 @@ If INITIAL is non-nil, it specifies the initial input string." (setq ido-set-default-item t)))) ;; Handling the require-match must be done in a better way. - ((and require-match (not (ido-existing-item-p))) + ((and require-match + (not (if ido-directory-too-big + (file-exists-p (concat ido-current-directory ido-final-text)) + (ido-existing-item-p)))) (error "must specify valid item")) (t -- 2.39.5