ui/doom-dashboard: fix restriction to dashboard buffer
This commit is contained in:
parent
f8cfe5878d
commit
d8105427e2
1 changed files with 21 additions and 22 deletions
|
@ -148,13 +148,12 @@ whose dimensions may not be fully initialized by the time this is run."
|
|||
(with-current-buffer fallback-buffer
|
||||
(setq default-directory
|
||||
(or (+doom-dashboard--get-pwd)
|
||||
default-directory)))
|
||||
default-directory))
|
||||
(unless +doom-dashboard-inhibit-refresh
|
||||
(with-silent-modifications
|
||||
(unless (eq major-mode '+doom-dashboard-mode)
|
||||
(+doom-dashboard-mode))
|
||||
(erase-buffer)
|
||||
|
||||
(let ((+doom-dashboard--height (window-height (get-buffer-window fallback-buffer)))
|
||||
(lines 1)
|
||||
content)
|
||||
|
@ -169,7 +168,7 @@ whose dimensions may not be fully initialized by the time this is run."
|
|||
?\n)
|
||||
content))
|
||||
(unless (button-at (point))
|
||||
(goto-char (next-button (point-min)))))))
|
||||
(goto-char (next-button (point-min))))))))
|
||||
;; Update all dashboard windows
|
||||
(dolist (win (get-buffer-window-list (doom-fallback-buffer) nil t))
|
||||
(set-window-fringes win 0 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue