branch: externals/vertico commit 2b0415d3ee12044b1522ad779808384872e74b30 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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 PRED." (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)))