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

Introduces a key to look up a candidate in various dictionaries #406

Merged
merged 20 commits into from
Dec 27, 2023
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ public class VerticalCandidateController: CandidateController {
newIndex = 0
}

if newIndex == UInt.max {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the same commit to OpenVanilla should be carried over here too. That is, a UInt.max check should be placed in line 297, and these three lines (284-286 currently) are dead code anyway, because newIndex is always set to 0 if newValue is UInt.max (from lines 276-282).

return
}

var lastVisibleRow = newValue

if selectedRow != -1 && itemCount > 0 && itemCount > labelCount {
Expand Down