mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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 ()
|
||||
(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,
|
||||
|
Reference in New Issue
Block a user