branch: externals/marginalia
commit e54aa0c4974905cc4da114c3bbcfb084486aa6e1
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Revert "Revert "fix #46: affixation suffix must not be nil, it must be a 
string""
    
    This reverts commit 09aaad9b01068481c71720058e9d828e0d87c806.
    
    Thank you @jakanakaevangeli.
    
    CC @clemera, https://github.com/raxod502/selectrum/issues/351
    
    Fix #46
---
 marginalia.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/marginalia.el b/marginalia.el
index a43ce6e..0551231 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -727,7 +727,7 @@ PROP is the property which is looked up."
                  (annotate (alist-get cat (symbol-value (car 
marginalia-annotators)))))
        (lambda (cands)
          (marginalia--context metadata
-           (mapcar (lambda (x) (list x (funcall annotate x))) cands)))))
+           (mapcar (lambda (x) (list x (or (funcall annotate x) ""))) 
cands)))))
     ('category
      ;; Find the completion category by trying each of our classifiers.
      ;; Store the metadata for `marginalia-classify-original-category'.

Reply via email to