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

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

[elpa] externals/company fe602f7: Don't try to render SVG icons in the t


From: ELPA Syncer
Subject: [elpa] externals/company fe602f7: Don't try to render SVG icons in the terminal
Date: Tue, 30 Mar 2021 07:57:05 -0400 (EDT)

branch: externals/company
commit fe602f74283bd9537ddf04ef45d8e1b89b88e1be
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Don't try to render SVG icons in the terminal
    
    #1082
---
 company.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 434a3be..ac73a33 100644
--- a/company.el
+++ b/company.el
@@ -1406,7 +1406,8 @@ end of the match."
                        (integer :value 15))))
 
 (defun company--render-icons-margin (icon-mapping root-dir candidate selected)
-  (if-let ((candidate candidate)
+  (if-let ((ws (window-system))
+           (candidate candidate)
            (kind (company-call-backend 'kind candidate))
            (icon-file (alist-get kind icon-mapping)))
       (let* ((bkg (face-attribute (if selected



reply via email to

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