Fanael / edit-indirect

Edit regions in separate buffers
99 stars 23 forks source link

Fix cleanup when indirect buffer is not selected #26

Closed LemonBreezes closed 7 months ago

LemonBreezes commented 7 months ago

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.

Fanael commented 7 months ago

Thanks!