mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 11:09:54 +00:00
Don't expand symbolic links in path.
Fix #51 and #209. Root cause: https://github.com/bbatsov/projectile/issues/1387.
This commit is contained in:
parent
c4a77d12c3
commit
b47fe7b65a
1 changed files with 3 additions and 3 deletions
|
@ -677,12 +677,12 @@ If the actual char height is larger, it respects the actual char height."
|
||||||
Return `default-directory' if no project was found."
|
Return `default-directory' if no project was found."
|
||||||
(or doom-modeline-project-root
|
(or doom-modeline-project-root
|
||||||
(setq doom-modeline-project-root
|
(setq doom-modeline-project-root
|
||||||
(or (and (bound-and-true-p projectile-mode)
|
(or (and (fboundp 'project-current)
|
||||||
(ignore-errors (projectile-project-root)))
|
|
||||||
(and (fboundp 'project-current)
|
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(when-let ((project (project-current)))
|
(when-let ((project (project-current)))
|
||||||
(expand-file-name (car (project-roots project))))))
|
(expand-file-name (car (project-roots project))))))
|
||||||
|
(and (bound-and-true-p projectile-mode)
|
||||||
|
(ignore-errors (projectile-project-root)))
|
||||||
default-directory))))
|
default-directory))))
|
||||||
|
|
||||||
(defun doom-modeline--make-xpm (face width height)
|
(defun doom-modeline--make-xpm (face width height)
|
||||||
|
|
Loading…
Reference in a new issue