Only check uniquify-buffer-name-style is nil or post-forward-angle-brackets.

This commit is contained in:
Vincent Zhang 2018-11-27 16:57:22 +08:00
parent 88a10968d1
commit 6c941d824c

View file

@ -746,6 +746,8 @@ buffer where knowing the current project directory is important."
(buffer-file-name buffer-file-name)) (buffer-file-name buffer-file-name))
(if (or (eq doom-modeline-buffer-file-name-style 'buffer-name) (if (or (eq doom-modeline-buffer-file-name-style 'buffer-name)
(not (file-exists-p buffer-file-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 (string-equal
(file-name-nondirectory buffer-file-name) (file-name-nondirectory buffer-file-name)
(replace-regexp-in-string "<.+>$" "" buffer-name))) (replace-regexp-in-string "<.+>$" "" buffer-name)))