Fix invalid face attribute :inherit nil on 26.

This commit is contained in:
Vincent Zhang 2020-06-09 01:41:07 +08:00
parent 5a6785cba0
commit 670b06502f

View file

@ -871,7 +871,7 @@ So convert the face \":family XXX :height XXX :inherit XXX\" to
See https://github.com/seagle0128/doom-modeline/issues/301."
(when-let* ((props (and icon (get-text-property 0 'face icon)))
(family (plist-get props :family))
(height (plist-get props :height) 1.0)
(height (plist-get props :height))
(face (or face (plist-get props :inherit) props))
(new-face `(:inherit ,face
:family ,family