mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
ui/doom-dashboard: only set last-cwd in real buffers
This commit is contained in:
@ -75,10 +75,12 @@ if in a GUI/non-daemon session."
|
|||||||
|
|
||||||
(defun +doom-dashboard|kill-buffer-query-fn ()
|
(defun +doom-dashboard|kill-buffer-query-fn ()
|
||||||
(or (unless (+doom-dashboard-p)
|
(or (unless (+doom-dashboard-p)
|
||||||
(setq +doom-dashboard--last-cwd default-directory)
|
(when buffer-file-name
|
||||||
|
(setq +doom-dashboard--last-cwd default-directory))
|
||||||
t)
|
t)
|
||||||
(ignore (let (+doom-dashboard-inhibit-refresh)
|
(ignore
|
||||||
(ignore-errors (+doom-dashboard-reload))))))
|
(let (+doom-dashboard-inhibit-refresh)
|
||||||
|
(ignore-errors (+doom-dashboard-reload))))))
|
||||||
|
|
||||||
(defun +doom-dashboard|make-frame (frame)
|
(defun +doom-dashboard|make-frame (frame)
|
||||||
"Reload the dashboard after a brief pause. This is necessary for new frames,
|
"Reload the dashboard after a brief pause. This is necessary for new frames,
|
||||||
|
Reference in New Issue
Block a user