Don't open doom-fallback-buffer on del workspace

The `current-buffer` wasn't being updated after switching workspaces and
was therefore failing the `doom-buffer-frame-predicate` check.
This commit is contained in:
Bryan Gilbert 2019-03-27 14:34:30 -04:00
parent ab616cfb95
commit 46a5be1e52

View file

@ -255,7 +255,7 @@ workspace to delete."
(if (+workspace-exists-p +workspace--last)
+workspace--last
(car (+workspace-list-names))))
(unless (doom-buffer-frame-predicate (current-buffer))
(unless (doom-buffer-frame-predicate (window-buffer))
(switch-to-buffer (doom-fallback-buffer))))
(t
(+workspace-switch +workspaces-main t)