mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix unchanging dashboard cwd when switched to
This commit is contained in:
@ -116,9 +116,9 @@ buffers. If there's nothing left, switch to `doom-fallback-buffer'. See
|
|||||||
(project-dir (doom-project-root)))
|
(project-dir (doom-project-root)))
|
||||||
(cond ((or (not buffers)
|
(cond ((or (not buffers)
|
||||||
(zerop (% n (1+ (length buffers)))))
|
(zerop (% n (1+ (length buffers)))))
|
||||||
(set-window-buffer nil (doom-fallback-buffer)))
|
(switch-to-buffer (doom-fallback-buffer) nil t))
|
||||||
((= (length buffers) 1)
|
((= (length buffers) 1)
|
||||||
(set-window-buffer nil (car buffers)))
|
(switch-to-buffer (car buffers) nil t))
|
||||||
(t
|
(t
|
||||||
;; Why this instead of switching straight to the Nth buffer in
|
;; Why this instead of switching straight to the Nth buffer in
|
||||||
;; BUFFERS? Because `switch-to-next-buffer' and
|
;; BUFFERS? Because `switch-to-next-buffer' and
|
||||||
|
Reference in New Issue
Block a user