[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/window-commander 300a4e8e61 084/170: * swsw.el (swsw-de
From: |
ELPA Syncer |
Subject: |
[elpa] externals/window-commander 300a4e8e61 084/170: * swsw.el (swsw-delete): Fix when the other tracked window is a minibuffer |
Date: |
Wed, 28 Jun 2023 19:00:28 -0400 (EDT) |
branch: externals/window-commander
commit 300a4e8e61235f1db55730fb1e56ec4e39a1d4b7
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@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)))
- [elpa] externals/window-commander 095091cf33 057/170: Handle cases where there are less than three tracked windows better, (continued)
- [elpa] externals/window-commander 095091cf33 057/170: Handle cases where there are less than three tracked windows better, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander c2c579a3c9 061/170: Construct multi-character IDs without pre-computing all possible IDs, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 7d82ffeef4 076/170: ; Small modifications to the NEWS file, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander d7fe615c3f 049/170: ; Fix inconsistency between requirements in swsw.el and swsw-pkg.el, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander cacbe44c08 058/170: ; Remove unnecessary ':group' keywords from 'defcustom' calls, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 73a241cf38 064/170: Ensure 'swsw-id-chars' is set correctly when customized, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander f66c043abc 067/170: Only call 'swsw-update' automatically when it's bound, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 53321ab4f2 069/170: ; Correct swsw-select's docstring, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander dbe46d5b86 070/170: * swsw.el (swsw-select): Don't select the next window for non-existent IDs, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 03747300a3 082/170: ; Add missing 'Window commands' entry to the detailed node listing, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 300a4e8e61 084/170: * swsw.el (swsw-delete): Fix when the other tracked window is a minibuffer,
ELPA Syncer <=
- [elpa] externals/window-commander c153d9a32c 087/170: ; Add version information to customizable variables, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander dc4595546a 094/170: ; Change a message to a (more fitting in this context) user-error, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 1411a6314c 116/170: * swsw.el (swsw--update-window): Use 'when-let' instead of 'let' and 'when', ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 4b308b978a 113/170: ; Move a comment slightly, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander e774ead908 104/170: ; Update mail address, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander af99790728 123/170: ; Various cosmetic changes to NEWS, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander c620c3028c 160/170: ; swsw.text: Fix typos and update information, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander f41a366777 159/170: ; Bump version to 2.3, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 95c25ee03c 022/170: ; Bump version to 1.0 and update README, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 51b8c1eb7c 080/170: ; Update documentation according to latest changes, ELPA Syncer, 2023/06/28