-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure correctness while typing a query fast
Typing a query fast enough to trigger the poll check in filter_choices() could yield a wrong set of choices. Since filter_choices() is interrupted, all choices have yet not been examined and potential matches could still be left unexamined. Calling print_choices() in this state causes the unexamined choices to never be reconsidered as potential matches since they will have a score = 0. The solution is to never call print_choices() if filter_choices() was interrupted. Problem reported and partial solution provided by Jenz Guenther in GitHub issue #268.
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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