Skip to content

Commit

Permalink
Don't attempt to filter unscored candidates
Browse files Browse the repository at this point in the history
These candidates should have already been filtered earlier through all-completions.
  • Loading branch information
jojojames committed Dec 5, 2024
1 parent 560afe9 commit 991fd52
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions fussy.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 991fd52

Please sign in to comment.