diff options
author | Kim F. Storm <storm@cua.dk> | 2004-11-23 15:18:16 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2004-11-23 15:18:16 +0000 |
commit | b3da0db521b7c6c9827c533425ea277d687a1d6d (patch) | |
tree | d2859fe0b25b45dceefe013103b5fb9fe32899ee /lisp/ido.el | |
parent | 14ed2ad6545f827312b33900a4701953102fdbb4 (diff) | |
download | emacs-b3da0db521b7c6c9827c533425ea277d687a1d6d.tar.gz emacs-b3da0db521b7c6c9827c533425ea277d687a1d6d.tar.bz2 emacs-b3da0db521b7c6c9827c533425ea277d687a1d6d.zip |
(ido-read-internal): Fix require-match check when
ido-directory-too-big is set.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r-- | lisp/ido.el | 5 |
1 files changed, 4 insertions, 1 deletions
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 |