persp-mode adds persp-kill-buffer-h to kill-buffer-hook. It invokes persp--remove-buffer-1, which may switch buffers. In the result other kill-buffer-hook functions may be called on a different buffer than the killed one, which may cause undesirable effects.
Setting persp-when-remove-buffer-switch-to-other-buffer to nil in persp-kill-buffer-h seems to fix the problem.
persp-mode adds persp-kill-buffer-h to kill-buffer-hook. It invokes persp--remove-buffer-1, which may switch buffers. In the result other kill-buffer-hook functions may be called on a different buffer than the killed one, which may cause undesirable effects.
Setting persp-when-remove-buffer-switch-to-other-buffer to nil in persp-kill-buffer-h seems to fix the problem.