Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove number zero from group number map #1181

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove number zero from group number map
StumpWM expects group numbers to grow incrementally and for their numbers to
match the *group-number-map*. However because group numbers start from one the
tenth group created gets the group number ten, while the *group-number-map* and
associated function group-map-number report its number as zero, because zero is
the tenth character in that string. Removing the zero from the string removes
this inconsistency, as any group-map-number that isnt present in the string is
returned via princ-to-string.
  • Loading branch information
szos committed Feb 20, 2024
commit cfa9870d7c8402ac94e329eb8b2570c20e2373b7
2 changes: 1 addition & 1 deletion primitives.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ exist, in which case they go into the current group.")
(defvar *window-number-map* "0123456789"
"Set this to a string to remap the window numbers to something more convenient.")

(defvar *group-number-map* "1234567890"
(defvar *group-number-map* "123456789"
"Set this to a string to remap the group numbers to something more convenient.")

(defvar *frame-number-map* "0123456789abcdefghijklmnopqrstuvwxyz"
Expand Down