(pcomplete-entries): Don't set `above-cutoff' to a value unless
pcomplete-cycle-cutoff-length is non-nil.
This commit is contained in:
parent
86d98c330d
commit
d86e0c59ec
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue