emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swsw 095091cf33 057/146: Handle cases where there are less


From: ELPA Syncer
Subject: [nongnu] elpa/swsw 095091cf33 057/146: Handle cases where there are less than three tracked windows better
Date: Wed, 25 May 2022 02:59:44 -0400 (EDT)

branch: elpa/swsw
commit 095091cf3371845d8d587646c1b76be052b7dbc0
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]