From 86f445d6a1b2ee7a96b41f114ad074591707c1cd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 27 Dec 2017 17:12:50 -0500 Subject: [PATCH] ui/doom-dashboard: only set last-cwd in real buffers --- modules/ui/doom-dashboard/config.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 3c3eb5116..017e51d85 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -75,10 +75,12 @@ if in a GUI/non-daemon session." (defun +doom-dashboard|kill-buffer-query-fn () (or (unless (+doom-dashboard-p) - (setq +doom-dashboard--last-cwd default-directory) + (when buffer-file-name + (setq +doom-dashboard--last-cwd default-directory)) t) - (ignore (let (+doom-dashboard-inhibit-refresh) - (ignore-errors (+doom-dashboard-reload)))))) + (ignore + (let (+doom-dashboard-inhibit-refresh) + (ignore-errors (+doom-dashboard-reload)))))) (defun +doom-dashboard|make-frame (frame) "Reload the dashboard after a brief pause. This is necessary for new frames,