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

Fix shift with single item #561

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Fix shift with single item #561

merged 1 commit into from
Oct 30, 2023

Conversation

sstendahl
Copy link
Owner

The line index = 1 if index == 0 > 1 else index leads to an index error later on in cases when there's only one item loaded. This condition should only be triggered if there's at least two items.

@sstendahl sstendahl merged commit 80f0793 into main Oct 30, 2023
6 checks passed
@sstendahl sstendahl deleted the fix-shift-on-single-item branch November 15, 2023 14:30
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