emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 04f56ca 282/399: ivy.el (ivy--recompute-index): Use config


From: Oleh Krehel
Subject: [elpa] master 04f56ca 282/399: ivy.el (ivy--recompute-index): Use configured flx candidate limit
Date: Sat, 20 Jul 2019 14:57:40 -0400 (EDT)

branch: master
commit 04f56ca6bd4c0957001f3a5dad049f70c2bd8a65
Author: Andrew Whatson <address@hidden>
Commit: Andrew Whatson <address@hidden>

    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',



reply via email to

[Prev in Thread] Current Thread [Next in Thread]