Fix #5195: workspace is killed on magit commit

Due to magit now using server-done instead of server-edit as of
magit/magit@5c02910, which calls server-done-hook, which the workspaces
module has a hook on to kill auto-generated, daemon-spawned frames,
causing workspaces to be prematurely killed when commiting in magit.
This commit is contained in:
Henrik Lissner 2021-07-09 18:01:02 -04:00
parent 13958c81a6
commit 3aeb0c060f

View file

@ -490,7 +490,7 @@ the next."
"Delete workspace associated with current frame.
A workspace gets associated with a frame when a new frame is interactively
created."
(when persp-mode
(when (and persp-mode (not (bound-and-true-p with-editor-mode)))
(unless frame
(setq frame (selected-frame)))
(let ((frame-persp (frame-parameter frame 'workspace)))