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

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

[elpa] master 714911b 389/399: ivy.el (ivy--sort): Higher priority for i


From: Oleh Krehel
Subject: [elpa] master 714911b 389/399: ivy.el (ivy--sort): Higher priority for ivy-sort-matches-functions-alist
Date: Sat, 20 Jul 2019 14:58:05 -0400 (EDT)

branch: master
commit 714911b59ff3ac987cc786f4c1fce57871b3cfc7
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy--sort): Higher priority for ivy-sort-matches-functions-alist
    
    Fixes #2136
---
 ivy.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ivy.el b/ivy.el
index d297cc7..1c2da08 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3275,11 +3275,11 @@ The alist VAL is a sorting function with the signature 
of
   "Re-sort candidates by NAME.
 All CANDIDATES are assumed to match NAME."
   (let (fun)
-    (cond ((and ivy--flx-featurep
+    (cond ((setq fun (ivy-alist-setting ivy-sort-matches-functions-alist))
+           (funcall fun name candidates))
+          ((and ivy--flx-featurep
                 (eq ivy--regex-function 'ivy--regex-fuzzy))
            (ivy--flx-sort name candidates))
-          ((setq fun (ivy-alist-setting ivy-sort-matches-functions-alist))
-           (funcall fun name candidates))
           (t
            candidates))))
 



reply via email to

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