From 991fd52b4f5b2fa00f5b856882553951bb8aadd2 Mon Sep 17 00:00:00 2001 From: James Nguyen Date: Wed, 4 Dec 2024 20:47:41 -0500 Subject: [PATCH] Don't attempt to filter unscored candidates These candidates should have already been filtered earlier through all-completions. --- fussy.el | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/fussy.el b/fussy.el index 4acc6b5..6da6bb9 100644 --- a/fussy.el +++ b/fussy.el @@ -628,18 +628,7 @@ Implement `all-completions' interface with additional fuzzy / `flx' scoring." (fussy--highlight-collection pattern (fussy-outer-score candidates-to-score infix cache)) - ;; Add the unsorted candidates. - ;; We could highlight these too, - ;; (e.g. with `fussy--highlight-collection') but these are - ;; at the bottom of the pile of candidates. - (if fussy-filter-unscored-candidates - (let ((r (car (funcall fussy-default-regex-fn infix)))) - (if r - (cl-remove-if-not - (lambda (c) (string-match-p r c)) - unscored-candidates) - unscored-candidates)) - unscored-candidates)))))))) + unscored-candidates))))))) ('nil ;; (message "fn: %S nil" 'fussy-all-completions) nil)