mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user