emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/marginalia 4d4f639 140/241: fix project file/buffer ann


From: Stefan Monnier
Subject: [elpa] externals/marginalia 4d4f639 140/241: fix project file/buffer annotations for consult-buffer
Date: Fri, 28 May 2021 20:49:14 -0400 (EDT)

branch: externals/marginalia
commit 4d4f6390dccfdeaba3b8cd1eb190e39ba8e1f5ad
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]