Fix symlinks in modeline path segment
This would cause a lot of ../'s when opening a symlinked file.
This commit is contained in:
parent
3e7f1ccf4f
commit
a005fed274
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue