ui/doom-dashboard: expand string +doom-dashboard-pwd-policy #309

This commit is contained in:
Henrik Lissner 2017-12-27 17:11:59 -05:00
parent b331acb46b
commit 6c3d7ad7c7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -125,7 +125,7 @@ whose dimensions may not be fully initialized by the time this is run."
(pcase +doom-dashboard-pwd-policy
(`last-project (doom-project-root))
(`last default-directory)
((pred stringp) +doom-dashboard-pwd-policy)
((pred stringp) (expand-file-name +doom-dashboard-pwd-policy))
((pred functionp) (funcall +doom-dashboard-pwd-policy default-directory))
(_ (warn "`+doom-dashboard-pwd-policy' has an invalid value of '%s'"
+doom-dashboard-pwd-policy)))))))