]> code.delx.au - gnu-emacs-elpa/commitdiff
Merge pull request #491 from akirakyle/patch-1
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 20 Mar 2016 12:43:51 +0000 (15:43 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 20 Mar 2016 12:43:51 +0000 (15:43 +0300)
Fixed lighter for grouped backends

company.el

index 9756402ec71d3c7afe2d9f978e2b425c4cb3dec2..5212f927e30286df3447ca48941ea450e379ec8e 100644 (file)
@@ -1096,7 +1096,8 @@ can retrieve meta-data for them."
 
 (defun company--group-lighter (candidate base)
   (let ((backend (or (get-text-property 0 'company-backend candidate)
-                     (car company-backend))))
+                     (cl-some (lambda (x) (and (not (keywordp x)) x))
+                              company-backend))))
     (when (and backend (symbolp backend))
       (let ((name (replace-regexp-in-string "company-\\|-company" ""
                                             (symbol-name backend))))