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,9 +75,11 @@ 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
|
||||
(let (+doom-dashboard-inhibit-refresh)
|
||||
(ignore-errors (+doom-dashboard-reload))))))
|
||||
|
||||
(defun +doom-dashboard|make-frame (frame)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue