Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce function
reduceSelectionLimitBy
.
This function reduces a selection limit by a given amount. We use this function to replace the incorrect subtraction in `adjustComputeSelectionLimit`. Background: The `subtract` function (from `Prelude`) is equivalent to `flip (-)`, which means that `subtract a b` is equivalent to `b - a`, rather than the other way round. Thanks to @KtorZ for discovering this.
- Loading branch information
1 parent
63df46a
commit 92d1fed
Showing
2 changed files
with
18 additions
and
2 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
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