From cd64fb27f8e359ee1700a3efa58e9aabb6683b5b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 13 Mar 2019 23:59:13 -0400 Subject: [PATCH] Fix breaking commit 1ce2b291 Possible nil being passed into file-local-name was causing stringp errors all over the place. --- modules/ui/modeline/config.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ui/modeline/config.el b/modules/ui/modeline/config.el index 34e961ad9..f22be333c 100644 --- a/modules/ui/modeline/config.el +++ b/modules/ui/modeline/config.el @@ -32,9 +32,8 @@ (or doom-modeline-project-root (setq doom-modeline-project-root (file-local-name - (if (featurep 'projectile) - (ignore-errors (projectile-project-root)) - default-directory))))) + (or (and (featurep 'projectile) (ignore-errors (projectile-project-root))) + default-directory))))) (advice-add #'doom-modeline-project-root :override #'+modeline*project-root) ;; Magit -- modeline only where it's useful