File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,17 @@ caching purposes.")
76
76
77
77
(defun lsp-headerline--fix-image-background (image )
78
78
" Fix IMAGE background if it is a file otherwise return as an icon."
79
- (if (and image (get-text-property 0 'display image))
80
- (propertize " " 'display
81
- (cl-list* 'image
82
- (plist-put
83
- (cl-copy-list
84
- (cl-rest (get-text-property
85
- 0 'display
86
- image)))
87
- :background (face-attribute 'header-line :background ))))
88
- (replace-regexp-in-string " \s \\ |\t " " " (or image " " ))))
79
+ (if image
80
+ (let ((display-image (get-text-property 0 'display image)))
81
+ (if (listp display-image)
82
+ (propertize " " 'display
83
+ (cl-list* 'image
84
+ (plist-put
85
+ (cl-copy-list
86
+ (cl-rest display-image))
87
+ :background (face-attribute 'header-line :background ))))
88
+ (replace-regexp-in-string " \s \\ |\t " " " display-image)))
89
+ " " ))
89
90
90
91
(defun lsp-headerline--filename-with-icon (file-path )
91
92
" Return the filename from FILE-PATH with the extension related icon."
You can’t perform that action at this time.
0 commit comments