branch: externals/company
commit fe602f74283bd9537ddf04ef45d8e1b89b88e1be
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
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