ui/modeline: don't resolve project root over tramp
It can be tremendously slow, and is evaluated on every input. Sometimes several times on each input.
This commit is contained in:
parent
7606311108
commit
b091a43fc7
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
|
|||
'((:eval
|
||||
(propertize
|
||||
(let ((buffer-file-name (buffer-file-name (buffer-base-buffer))))
|
||||
(or (when buffer-file-name
|
||||
(or (when (and (not (file-remote-p buffer-file-name)) buffer-file-name)
|
||||
(if-let (project (doom-project-root buffer-file-name))
|
||||
(let ((filename (or buffer-file-truename (file-truename buffer-file-name))))
|
||||
(file-relative-name filename (concat project "..")))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue