Fix unchanging dashboard cwd when switched to

This commit is contained in:
Henrik Lissner 2017-09-26 19:39:06 +02:00
parent b60286d909
commit e1d5e48d46
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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