mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix: incorrect icons for some buffers.
This commit is contained in:
parent
4c734d7f3e
commit
a6814ac4e3
1 changed files with 2 additions and 1 deletions
|
@ -202,7 +202,8 @@ buffer where knowing the current project directory is important."
|
||||||
(when (and doom-modeline-icon doom-modeline-major-mode-icon)
|
(when (and doom-modeline-icon doom-modeline-major-mode-icon)
|
||||||
(let* ((height (/ all-the-icons-scale-factor 1.3))
|
(let* ((height (/ all-the-icons-scale-factor 1.3))
|
||||||
(icon (if (and buffer-file-name
|
(icon (if (and buffer-file-name
|
||||||
(all-the-icons-auto-mode-match?))
|
(all-the-icons-match-to-alist buffer-file-name
|
||||||
|
all-the-icons-icon-alist))
|
||||||
(doom-modeline-icon-for-file (file-name-nondirectory buffer-file-name)
|
(doom-modeline-icon-for-file (file-name-nondirectory buffer-file-name)
|
||||||
:height height)
|
:height height)
|
||||||
(doom-modeline-icon-for-mode major-mode :height height))))
|
(doom-modeline-icon-for-mode major-mode :height height))))
|
||||||
|
|
Loading…
Reference in a new issue