From 309614c3acbdca9d0a50827e94c2ac8cda11f420 Mon Sep 17 00:00:00 2001 From: James Nguyen Date: Sun, 8 Dec 2024 16:39:47 -0500 Subject: [PATCH] Highlight collection when backspacing --- fussy.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fussy.el b/fussy.el index 4aa4583..5fb64dd 100644 --- a/fussy.el +++ b/fussy.el @@ -569,7 +569,14 @@ Implement `all-completions' interface with additional fuzzy / `flx' scoring." ;; (message "%s from hash with length %d" ;; string (length cached-all)) ;; (fussy--print-hash-table fussy--all-cache) - (nconc cached-all (length prefix))) + (nconc (fussy--highlight-collection + (if (fussy--orderless-p) + (fussy--recreate-orderless-pattern + string table pred point) + (fussy--recreate-regex-pattern + beforepoint afterpoint bounds)) + cached-all) + (length prefix))) (pcase (while-no-input (pcase-let*