branch: externals/window-commander commit 095091cf3371845d8d587646c1b76be052b7dbc0 Author: Daniel Semyonov <cm...@dsemy.com> Commit: Daniel Semyonov <cm...@dsemy.com>
Handle cases where there are less than three tracked windows better * swsw.el (swsw-select): Select the window returned by 'next-window' instead of calling 'other-window'. --- swsw.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/swsw.el b/swsw.el index 33cf1f33dd..7f26b638c9 100644 --- a/swsw.el +++ b/swsw.el @@ -200,11 +200,8 @@ This command is intended to be used only when ‘swsw-mode’ is enabled." (unwind-protect (swsw--read-id (swsw--get-id-length)) (run-hooks 'swsw-after-select-hook)))) - (if id - (let ((window (cdr (assoc id swsw-window-list)))) - (when window - (select-window window))) - (other-window 1))) + (let ((window (cdr (assoc id swsw-window-list)))) + (select-window (if window window (next-window))))) ;;;###autoload (define-minor-mode swsw-mode