ui/doom-dashboard: only set last-cwd in real buffers
This commit is contained in:
parent
6c3d7ad7c7
commit
86f445d6a1
1 changed files with 5 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue