mirror of https://github.com/helix-editor/helix
use partition_point instead of binary_search_by
Using `partition_point` ensures we always find the first entry. With binary search it is "random" (deterministic but implementation specific) which index is retruned if there are multiple equal elements. `partition_point` was added to the standard library to cover extactly the usecase here.pull/6188/merge
parent
72b9311678
commit
7cf448eb5b
Loading…
Reference in New Issue