branch: master
commit 04f56ca6bd4c0957001f3a5dad049f70c2bd8a65
Author: Andrew Whatson <[email protected]>
Commit: Andrew Whatson <[email protected]>
ivy.el (ivy--recompute-index): Use configured flx candidate limit
Replace hard-coded candidate limit with the existing customizable
variable. This allows people with fast machines to opt-in to
full-featured sorting.
---
ivy.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index be0a194..3d2eff8 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3286,8 +3286,8 @@ RE-STR is the regexp, CANDS are the current candidates."
(not (eq caller 'swiper))
(not (and ivy--flx-featurep
(eq ivy--regex-function 'ivy--regex-fuzzy)
- ;; Limit to 200 candidates
- (null (nthcdr 200 cands))))
+ ;; Limit to configured number of candidates
+ (null (nthcdr ivy-flx-limit cands))))
;; If there was a preselected candidate, don't try to
;; keep it selected even if the regexp still matches it.
;; See issue #1563. See also `ivy--preselect-index',