Repository navigation
Fix tree restricted search infinite wrap - #1371
Merged
Merged
Conversation
This is needed for cases where get_prev/get_next may skip items depending on the direction.
Member
Author
|
@flyingmutant, this should be rebase-merged to keep the refactor separate from the fix. |
This was referenced Sep 22, 2024
gavtroy
reviewed
Sep 23, 2024
This happens when: - Using forward/reverse tree (view=1, i.e., tree_search_ops) restricted search (`//` or `??`, i.e., cmd_search_start or cmd_search_b_start with search_restricted=1). - The currently selected item (because search beginning=0) is not the first/last track for forwards/backwards search respectively. - Wrapping is enabled (i.e., wrap_search=1). - No match is found for the search query. The initial iter from get_current (i.e., the currently selected track) is never identical to the one from get_prev/get_next since it only considers the first/last track of each album, causing it to keep searching indefinitely.
pgaskin
force-pushed
the
fix-tree-search-infinite-wrap
branch
from
September 23, 2024 00:34
ec5f9da to
e8ef999
Compare
gavtroy
approved these changes
Sep 23, 2024
Member
Don't worry, I'll default to rebase-merge all your PRs. I don't like squashing in general, but sometimes PR commit history is just too hairy for a rebase. |
Member
Author
|
Okay, thanks 😉. Probably do the same for @gavtroy's as well since those are also logically split into independent commits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #1332