mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix #168: when no icons: invalid face attribute and reference.
This commit is contained in:
parent
2bbfcbe685
commit
e902f41638
1 changed files with 4 additions and 4 deletions
|
@ -588,13 +588,13 @@ Uses `all-the-icons-octicon' to fetch the icon."
|
|||
(concat
|
||||
(propertize " " 'face (if active 'mode-line 'mode-line-inactive))
|
||||
(propertize icon 'face `(:inherit
|
||||
,(if doom-modeline-icon (get-text-property 0 'face icon))
|
||||
,(get-text-property 0 'face icon)
|
||||
:inherit
|
||||
,(if active 'mode-line 'mode-line-inactive)))
|
||||
(if doom-modeline-icon
|
||||
(if active doom-modeline-vspc doom-modeline-inactive-vspc))
|
||||
(propertize text 'face `(:inherit
|
||||
,(if doom-modeline-icon (get-text-property 0 'face text))
|
||||
,(get-text-property 0 'face text)
|
||||
:inherit
|
||||
,(if active 'mode-line 'mode-line-inactive)))
|
||||
(propertize " " 'face (if active 'mode-line 'mode-line-inactive))))))
|
||||
|
@ -913,7 +913,7 @@ icons."
|
|||
'face (if active 'mode-line 'mode-line-inactive))
|
||||
(when icon
|
||||
(propertize icon 'face `(:inherit
|
||||
,(if doom-modeline-icon (get-text-property 0 'face icon))
|
||||
,(get-text-property 0 'face icon)
|
||||
:inherit
|
||||
,(if active 'mode-line 'mode-line-inactive))))
|
||||
(when (and doom-modeline-icon icon text)
|
||||
|
@ -2018,7 +2018,7 @@ we don't want to remove that so we just return the original."
|
|||
(if percent-str
|
||||
(concat
|
||||
(propertize icon 'face `(:inherit
|
||||
,(if doom-modeline-icon (get-text-property 0 'face icon))
|
||||
,(get-text-property 0 'face icon)
|
||||
:inherit ,face)
|
||||
'help-echo help-echo)
|
||||
(if doom-modeline-icon
|
||||
|
|
Loading…
Reference in a new issue