Only show buffer name in inactive window.

This commit is contained in:
Vincent Zhang 2018-11-15 15:46:23 +08:00
parent d0c23229ec
commit 781ce1b3c2

View file

@ -657,7 +657,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
:face 'doom-modeline-warning :face 'doom-modeline-warning
:v-adjust -0.05) :v-adjust -0.05)
" "))) " ")))
(if buffer-file-name (if (and (doom-modeline--active) buffer-file-name )
doom-modeline-buffer-file-name doom-modeline-buffer-file-name
"%b"))) "%b")))