mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -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)
|
(if (+workspace-exists-p +workspace--last)
|
||||||
+workspace--last
|
+workspace--last
|
||||||
(car (+workspace-list-names))))
|
(car (+workspace-list-names))))
|
||||||
(unless (doom-buffer-frame-predicate (current-buffer))
|
(unless (doom-buffer-frame-predicate (window-buffer))
|
||||||
(switch-to-buffer (doom-fallback-buffer))))
|
(switch-to-buffer (doom-fallback-buffer))))
|
||||||
(t
|
(t
|
||||||
(+workspace-switch +workspaces-main t)
|
(+workspace-switch +workspaces-main t)
|
||||||
|
Reference in New Issue
Block a user