mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fallback to buffer name if doom-modeline-buffer-file-name
is nil.
This commit is contained in:
parent
ef1ee6357c
commit
15a0a8a962
1 changed files with 2 additions and 1 deletions
|
@ -656,7 +656,8 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
|||
:face 'doom-modeline-warning
|
||||
:v-adjust -0.05)
|
||||
" ")))
|
||||
(if (and buffer-file-name
|
||||
(if (and doom-modeline-buffer-file-name
|
||||
buffer-file-name
|
||||
(file-exists-p buffer-file-name))
|
||||
doom-modeline-buffer-file-name
|
||||
"%b")))
|
||||
|
|
Loading…
Reference in a new issue