From b47fe7b65ad164581b5aef88e3efa20b93178da6 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 20 Aug 2019 02:29:03 +0800 Subject: [PATCH] Don't expand symbolic links in path. Fix #51 and #209. Root cause: https://github.com/bbatsov/projectile/issues/1387. --- doom-modeline-core.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 570c70b..b1fa56b 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -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)