branch: externals/window-commander commit 300a4e8e61235f1db55730fb1e56ec4e39a1d4b7 Author: Daniel Semyonov <cm...@dsemy.com> Commit: Daniel Semyonov <cm...@dsemy.com>
* swsw.el (swsw-delete): Fix when the other tracked window is a minibuffer --- swsw.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/swsw.el b/swsw.el index fa884dd5f7..78476eb835 100644 --- a/swsw.el +++ b/swsw.el @@ -299,7 +299,10 @@ Otherwise, window deletion allows either choosing a window by its ID This command is intended to be used only when ‘swsw-mode’ is enabled." (interactive) (if (< swsw-window-count 3) - (delete-window (next-window)) + (let ((window (next-window))) + (unless (or (minibufferp (window-buffer window)) + (minibufferp)) ; Selected window. + (delete-window window))) (swsw--run-window-command #'delete-window))) (defvar swsw-command-map (let ((map (make-sparse-keymap)))