[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/window-commander f9f64e0559 060/170: * swsw.el (swsw--g
From: |
ELPA Syncer |
Subject: |
[elpa] externals/window-commander f9f64e0559 060/170: * swsw.el (swsw--get-id-length): Return 1 when there is one window tracked |
Date: |
Wed, 28 Jun 2023 19:00:26 -0400 (EDT) |
branch: externals/window-commander
commit f9f64e0559e14d36ecfe31278a505733f495f7c9
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
* swsw.el (swsw--get-id-length): Return 1 when there is one window tracked
---
swsw.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/swsw.el b/swsw.el
index 597f53ab28..1bfd882ecc 100644
--- a/swsw.el
+++ b/swsw.el
@@ -141,9 +141,13 @@ If set to ‘lighter’, use the mode line lighter of
‘swsw-mode’."
(defun swsw--get-id-length ()
"Return the current length of a window ID."
- (ceiling (log
- (length (window-list-1 nil nil (swsw--get-scope)))
- (length swsw-id-chars))))
+ (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))))))
(defun swsw-update-window (window)
"Update information for WINDOW."
- [elpa] externals/window-commander 54ca1baa14 030/170: ; Restructure README and commentary, (continued)
- [elpa] externals/window-commander 54ca1baa14 030/170: ; Restructure README and commentary, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander ebaa85abdd 031/170: ; Add a missing word to a comment, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 6695f8858e 034/170: ; Use '; ' for inline comment instead of '; ; ', ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander b5b05358a3 035/170: ; Add a news file containing a detailed change log, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander b6277eb31f 037/170: ; Indicate that version 1.1 is still in development in the NEWS file, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 1a5ce9c559 038/170: ; Add binding 'C-x o' to 'swsw-select' in 'swsw-mode-map' to the NEWS, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 7a00ef3140 039/170: ; Small documentation fixes, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 3a9848deac 042/170: Add an Info node for the package, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 74124620af 048/170: ; Add brief usage information to the docstring of 'swsw-mode', ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 5b0f4657cc 052/170: ; Simplify build process, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander f9f64e0559 060/170: * swsw.el (swsw--get-id-length): Return 1 when there is one window tracked,
ELPA Syncer <=
- [elpa] externals/window-commander 64c66d244b 062/170: * swsw.el (swsw-ids): Removed, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander b3f6cee6af 068/170: ; Unify information in the README and commentary, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 5e77d34dfa 054/170: ; Modify installation section of the README file and Info node, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 185861a2e9 010/170: Use a lighter for 'swsw-mode', ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander c08a9b1e58 024/170: ; Fix a docstring, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 5addab5009 027/170: ; Fix installing swsw.el as a package, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 2d2edca2c3 029/170: ; Add 'Usage:' section to the commentary, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander a5b25e075f 032/170: Allow setting the scope to the selected frame, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 2002152fb7 023/170: ; Add .gitignore file, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 5937f8bc6e 043/170: ; Update .gitignore to ignore some build artifacts, ELPA Syncer, 2023/06/28