mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix symlinks in modeline path segment
This would cause a lot of ../'s when opening a symlinked file.
This commit is contained in:
@ -274,7 +274,7 @@ e.g. project/src/lib/file.c"
|
||||
(let* ((project-root (doom-project-root))
|
||||
(true-filename (file-truename buffer-file-name))
|
||||
(relative-dirs (file-relative-name (file-name-directory true-filename)
|
||||
project-root)))
|
||||
(file-truename project-root))))
|
||||
(list (cons (concat (doom-project-name) "/")
|
||||
'doom-modeline-buffer-project-root)
|
||||
(cons (if (equal "./" relative-dirs) "" relative-dirs)
|
||||
|
Reference in New Issue
Block a user