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

Conversation

szos
Copy link
Contributor

@szos szos commented Feb 20, 2024

This fixes issue #1180.

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.

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.
@dmb2 dmb2 merged commit c802c7e into stumpwm:master Mar 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants