Skip to content

Fix focus_next reverse wrapping #162

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lfgberg
Copy link

@lfgberg lfgberg commented May 17, 2025

When using focus_next with a negative step it would cause an exception instead of properly wrapping around - using modulo makes it work correctly in either direction

When using focus_next with a negative step it would cause an exception instead of properly wrapping around - using modulo makes it work correctly in either direction
@lfgberg
Copy link
Author

lfgberg commented May 17, 2025

See #161

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.

1 participant