Fix unchanging dashboard cwd when switched to
This commit is contained in:
parent
b60286d909
commit
e1d5e48d46
1 changed files with 2 additions and 2 deletions
|
@ -116,9 +116,9 @@ buffers. If there's nothing left, switch to `doom-fallback-buffer'. See
|
|||
(project-dir (doom-project-root)))
|
||||
(cond ((or (not buffers)
|
||||
(zerop (% n (1+ (length buffers)))))
|
||||
(set-window-buffer nil (doom-fallback-buffer)))
|
||||
(switch-to-buffer (doom-fallback-buffer) nil t))
|
||||
((= (length buffers) 1)
|
||||
(set-window-buffer nil (car buffers)))
|
||||
(switch-to-buffer (car buffers) nil t))
|
||||
(t
|
||||
;; Why this instead of switching straight to the Nth buffer in
|
||||
;; BUFFERS? Because `switch-to-next-buffer' and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue