mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +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:
|
Example:
|
||||||
~/Projects/FOSS/emacs/lisp/comint.el => ~/P/F/emacs/lisp/comint.el"
|
~/Projects/FOSS/emacs/lisp/comint.el => ~/P/F/emacs/lisp/comint.el"
|
||||||
(let* ((project-root (doom-modeline-project-root))
|
(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)
|
(file-name-directory buffer-file-name)
|
||||||
buffer-file-name))
|
buffer-file-name))
|
||||||
(active (doom-modeline--active)))
|
(active (doom-modeline--active)))
|
||||||
|
|
Loading…
Reference in a new issue