mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix: invalid shrinked file path when the file is not in a project.
Refer to https://emacs-china.org/t/doom-modeline-doom-emacs-mode-line/6742/34?u=seagle0128.
This commit is contained in:
parent
299ef87829
commit
a22a895b7b
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ fish-shell style.
|
|||
Example:
|
||||
~/Projects/FOSS/emacs/lisp/comint.el => ~/P/F/emacs/lisp/comint.el"
|
||||
(let* ((project-root (doom-modeline-project-root))
|
||||
(file-name-split (shrink-path-file-mixed project-root
|
||||
(file-name-split (shrink-path-file-mixed (or project-root "")
|
||||
(file-name-directory buffer-file-name)
|
||||
buffer-file-name))
|
||||
(active (doom-modeline--active)))
|
||||
|
|
Loading…
Reference in a new issue