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

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

[elpa] externals/kind-icon 364a903 1/2: Reserve unknown badge for unmatc


From: ELPA Syncer
Subject: [elpa] externals/kind-icon 364a903 1/2: Reserve unknown badge for unmatching kinds, blank otherwise
Date: Fri, 26 Nov 2021 17:57:20 -0500 (EST)

branch: externals/kind-icon
commit 364a9038c9c54da424ce9590e6ad335ce7c76a37
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>

    Reserve unknown badge for unmatching kinds, blank otherwise
---
 kind-icon.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/kind-icon.el b/kind-icon.el
index 354c374..06cefe3 100644
--- a/kind-icon.el
+++ b/kind-icon.el
@@ -275,6 +275,7 @@ background-color."
 
 (defconst kind-icon--unknown
   (propertize "???" 'face '(:weight bold :background "red")))
+(defconst kind-icon--blank "   ")
 
 (defun kind-icon-margin-formatter (metadata)
   "Return a margin-formatter function which produces kind icons.
@@ -285,8 +286,8 @@ function to the relevant margin-formatters list."
       (lambda (cand)
        (if-let ((kind (funcall kind-func cand)))
            (kind-icon-formatted kind)
-         kind-icon--unknown))))
-      
+         kind-icon--blank))))
+
 (defun kind-icon--affixation-function (kind-func &optional ann-func)
   "Create and return a custom kind-icon affixation function.
 The company-kind function should be passed in as KIND-FUNC and



reply via email to

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