mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-24 03:00:10 +00:00
Don't show state icon in inactive windows.
This commit is contained in:
parent
6c941d824c
commit
58eb5c3b55
1 changed files with 7 additions and 3 deletions
|
@ -776,11 +776,15 @@ buffer where knowing the current project directory is important."
|
||||||
"Combined information about the current buffer, including the current working
|
"Combined information about the current buffer, including the current working
|
||||||
directory, the file name, and its state (modified, read-only or non-existent)."
|
directory, the file name, and its state (modified, read-only or non-existent)."
|
||||||
(concat
|
(concat
|
||||||
(when (and doom-modeline-icon doom-modeline-major-mode-icon)
|
;; major mode icon
|
||||||
|
(if (and doom-modeline-icon doom-modeline-major-mode-icon)
|
||||||
(or doom-modeline--buffer-file-icon (doom-modeline-update-buffer-file-icon)))
|
(or doom-modeline--buffer-file-icon (doom-modeline-update-buffer-file-icon)))
|
||||||
|
|
||||||
(or doom-modeline--buffer-file-state-icon (doom-modeline-update-buffer-file-state-icon))
|
;; state icon
|
||||||
|
(if (doom-modeline--active)
|
||||||
|
(or doom-modeline--buffer-file-state-icon (doom-modeline-update-buffer-file-state-icon)))
|
||||||
|
|
||||||
|
;; buffer file name
|
||||||
(if (doom-modeline--active)
|
(if (doom-modeline--active)
|
||||||
(or doom-modeline--buffer-file-name (doom-modeline-update-buffer-file-name))
|
(or doom-modeline--buffer-file-name (doom-modeline-update-buffer-file-name))
|
||||||
"%b")))
|
"%b")))
|
||||||
|
|
Loading…
Reference in a new issue