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:
Vincent Zhang 2019-08-20 02:29:03 +08:00
parent c4a77d12c3
commit b47fe7b65a

View file

@ -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."
(or doom-modeline-project-root
(setq doom-modeline-project-root
(or (and (bound-and-true-p projectile-mode)
(ignore-errors (projectile-project-root)))
(and (fboundp 'project-current)
(or (and (fboundp 'project-current)
(ignore-errors
(when-let ((project (project-current)))
(expand-file-name (car (project-roots project))))))
(and (bound-and-true-p projectile-mode)
(ignore-errors (projectile-project-root)))
default-directory))))
(defun doom-modeline--make-xpm (face width height)