Skip to content

Commit

Permalink
Don't expand symbolic links in path.
Browse files Browse the repository at this point in the history
Fix #51 and #209.
Root cause: bbatsov/projectile#1387.
  • Loading branch information
seagle0128 committed Aug 19, 2019
1 parent c4a77d1 commit b47fe7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doom-modeline-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b47fe7b

Please sign in to comment.