[Top][All Lists]

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

[elpa] externals/vertico 0ff9daa 1/2: Minor simplification

From: ELPA Syncer
Subject: [elpa] externals/vertico 0ff9daa 1/2: Minor simplification
Date: Sun, 11 Jul 2021 14:57:17 -0400 (EDT)

branch: externals/vertico
commit 0ff9daa98bffbde0c8ac75f3727db1f144411051
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Minor simplification
 vertico.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vertico.el b/vertico.el
index 21496e8..ab680d5 100644
--- a/vertico.el
+++ b/vertico.el
@@ -319,9 +319,9 @@ The function is configured by RECENCY, BSIZE, BINDEX, BPRED 
and PRED."
                                  (concat "\\|" (regexp-opt 
completion-ignored-extensions) "\\'")))))
         (setq all (cl-delete-if (lambda (x) (string-match-p ignore x)) all))))
     ;; Sort using the `display-sort-function' or the Vertico sort functions
-    (when-let (sort (or (and (not vertico-sort-override-function)
-                             (completion-metadata-get metadata 
-                        vertico-sort-override-function vertico-sort-function))
+    (when-let (sort (or vertico-sort-override-function
+                        (completion-metadata-get metadata 
+                        vertico-sort-function))
       (unless (eq sort #'identity)
         (vertico--update-history-hash (substring content 0 base))
         (setq all (funcall sort all))))

reply via email to

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