mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 19:19:53 +00:00
Only check uniquify-buffer-name-style is nil or post-forward-angle-brackets.
This commit is contained in:
parent
88a10968d1
commit
6c941d824c
1 changed files with 2 additions and 0 deletions
|
@ -746,6 +746,8 @@ buffer where knowing the current project directory is important."
|
|||
(buffer-file-name buffer-file-name))
|
||||
(if (or (eq doom-modeline-buffer-file-name-style 'buffer-name)
|
||||
(not (file-exists-p buffer-file-name))
|
||||
(and (not uniquify-buffer-name-style)
|
||||
(not (eq uniquify-buffer-name-style 'post-forward-angle-brackets)))
|
||||
(string-equal
|
||||
(file-name-nondirectory buffer-file-name)
|
||||
(replace-regexp-in-string "<.+>$" "" buffer-name)))
|
||||
|
|
Loading…
Reference in a new issue