From 54001de36e36301a49ba31c361fd5edd0337f07a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 29 Dec 2017 04:15:56 -0500 Subject: [PATCH] ui/doom-dashboard: fix string/function pwd-policy when last-cwd is blank --- modules/ui/doom-dashboard/config.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 2f19d5f5b..92533ce29 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -170,6 +170,10 @@ whose dimensions may not be fully initialized by the time this is run." (policy +doom-dashboard-pwd-policy)) (cond ((null policy) default-directory) + ((stringp policy) + (expand-file-name policy lastcwd)) + ((functionp policy) + (funcall policy lastcwd)) ((null lastcwd) default-directory) ((eq policy 'last-project) @@ -180,13 +184,9 @@ whose dimensions may not be fully initialized by the time this is run." cwd))) ((eq policy 'last) lastcwd) - ((stringp policy) - (expand-file-name policy lastcwd)) - ((functionp policy) - (funcall policy lastcwd)) (t (warn "`+doom-dashboard-pwd-policy' has an invalid value of '%s'" - +doom-dashboard-pwd-policy))))) + policy))))) ;; widgets (defun doom-dashboard-widget--banner ()