branch: externals/marginalia
commit 4d4f6390dccfdeaba3b8cd1eb190e39ba8e1f5ad
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
fix project file/buffer annotations for consult-buffer
---
marginalia.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/marginalia.el b/marginalia.el
index ef21f7d..bc56ddd 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -333,8 +333,8 @@ This hash table is needed to speed up
`marginalia-annotate-binding'.")
(defun marginalia-annotate-virtual-buffer-full (cand)
"Annotate virtual-buffer CAND with the buffer class."
(pcase (- (elt cand 0) #x100000)
- (?b (marginalia-annotate-buffer (substring cand 1)))
- (?f (marginalia-annotate-file (substring cand 1)))
+ ((or ?b ?p) (marginalia-annotate-buffer (substring cand 1)))
+ ((or ?f ?q) (marginalia-annotate-file (substring cand 1)))
(_ (marginalia-annotate-virtual-buffer-class cand))))
(defconst marginalia--advice-regexp