(pcomplete-entries): Don't set `above-cutoff' to a value unless

pcomplete-cycle-cutoff-length is non-nil.
This commit is contained in:
John Wiegley 2002-08-05 20:07:12 +00:00
parent 86d98c330d
commit d86e0c59ec

View file

@ -735,8 +735,9 @@ component, DEFAULT-DIRECTORY is used as the basis for completion."
(string-match pcomplete-dir-ignore file))
(and pcomplete-file-ignore
(string-match pcomplete-file-ignore file))))))))
(setq above-cutoff (> (length completions)
pcomplete-cycle-cutoff-length))
(setq above-cutoff (and pcomplete-cycle-cutoff-length
(> (length completions)
pcomplete-cycle-cutoff-length)))
(sort completions
(function
(lambda (l r)