Skip to content

Commit af1ad22

Browse files
authored
Inherit header-line attributes when replacing icons background. (#2328)
A face can have background attribute unspecified. In this case we have to get parent attribute to replace background correctly.
1 parent 936dd86 commit af1ad22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-headerline.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ caching purposes.")
8484
(plist-put
8585
(cl-copy-list
8686
(cl-rest display-image))
87-
:background (face-attribute 'header-line :background))))
87+
:background (face-attribute 'header-line :background nil t))))
8888
(replace-regexp-in-string "\s\\|\t" "" display-image)))
8989
""))
9090

0 commit comments

Comments
 (0)