When the indirect buffer is killed but not selected, the current window and buffer are killed. Now we check in the kill-buffer-hook if the cleanup function is being ran interactively. Also, now before quitting the window, we check that we are in fact currently selecting the edit-indirect buffer.
This fixes an issue in Doom Emacs where if the indirect edit buffer is killed in the background, the currently selected buffer is killed as well.
When the indirect buffer is killed but not selected, the current window and buffer are killed. Now we check in the
kill-buffer-hook
if the cleanup function is being ran interactively. Also, now before quitting the window, we check that we are in fact currently selecting the edit-indirect buffer.This fixes an issue in Doom Emacs where if the indirect edit buffer is killed in the background, the currently selected buffer is killed as well.