[Top][All Lists]

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

[elpa] externals/vertico 2b0415d: Delete consecutive duplicates (Fix #69

From: ELPA Syncer
Subject: [elpa] externals/vertico 2b0415d: Delete consecutive duplicates (Fix #69)
Date: Mon, 29 Nov 2021 17:57:40 -0500 (EST)

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

    Delete consecutive duplicates (Fix #69)
 vertico.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vertico.el b/vertico.el
index d587cf5..305bb1c 100644
--- a/vertico.el
+++ b/vertico.el
@@ -349,7 +349,7 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and 
     (when completing-file
       (setq all (vertico--filter-files all)))
     ;; Sort using the `display-sort-function' or the Vertico sort functions
-    (setq all (funcall (or (vertico--sort-function) #'identity) all))
+    (setq all (delete-consecutive-dups (funcall (or (vertico--sort-function) 
#'identity) all)))
     ;; Move special candidates: "field" appears at the top, before "field/", 
before default value
     (when (stringp def)
       (setq all (vertico--move-to-front def all)))

reply via email to

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