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

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

[nongnu] elpa/swsw 04ace20d03 063/146: ; Fix indentation and compact str


From: ELPA Syncer
Subject: [nongnu] elpa/swsw 04ace20d03 063/146: ; Fix indentation and compact structure in some places
Date: Wed, 25 May 2022 02:59:45 -0400 (EDT)

branch: elpa/swsw
commit 04ace20d03b0b370272d221d495a43c41fb125cd
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>

    ; Fix indentation and compact structure in some places
---
 swsw.el | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/swsw.el b/swsw.el
index 2751613993..a41d48d748 100644
--- a/swsw.el
+++ b/swsw.el
@@ -130,11 +130,8 @@ If set to ‘lighter’, use the mode line lighter of 
‘swsw-mode’."
   "Return the current length of a window ID."
   (let ((windows (length (window-list-1 nil nil (swsw--get-scope)))))
     ;; If there is only one window, return 1.
-    (if (= windows 1)
-        1
-      (ceiling (log
-                windows
-                (length swsw-id-chars))))))
+    (if (= windows 1) 1
+      (ceiling (log windows (length swsw-id-chars))))))
 
 (defvar swsw--id-counter nil
   "Counter which determines the next possible ID.")
@@ -200,7 +197,7 @@ This command is intended to be used only when ‘swsw-mode’ 
is enabled."
                      (swsw--read-id (swsw--get-id-length))
                    (run-hooks 'swsw-after-select-hook))))
   (let ((window (cdr (assoc id swsw-window-list))))
-      (select-window (if window window (next-window)))))
+    (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]