From e1d5e48d4678b5484a235de950e81ffc26499e3f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 26 Sep 2017 19:39:06 +0200 Subject: [PATCH] Fix unchanging dashboard cwd when switched to --- core/autoload/buffers.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/autoload/buffers.el b/core/autoload/buffers.el index 2cb053611..b9a54fd37 100644 --- a/core/autoload/buffers.el +++ b/core/autoload/buffers.el @@ -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