Skip to content

Commit

Permalink
Account for multiple inherited faces
Browse files Browse the repository at this point in the history
  • Loading branch information
tecosaur committed Apr 30, 2021
1 parent 14eddbe commit b6d31d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engrave-faces.el
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ I.e. ([facea :inherit faceb] facec) results in (facea faceb facec)"
(cons face
(let ((inherit (face-attribute face :inherit nil nil)))
(when (and inherit (not (eq inherit 'unspecified)))
(engrave-faces-explicit-inheritance (list inherit))))))
(engrave-faces-explicit-inheritance
(if (listp inherit) inherit (list inherit)))))))
faces)))

(defun engrave-faces-attribute-values (faces attribute)
Expand Down

0 comments on commit b6d31d8

Please sign in to comment.