mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Refactor: Change the AK::binary_search signature to use AK::Span.
This commit is contained in:
parent
ac9c2bc492
commit
707d92db61
5 changed files with 20 additions and 19 deletions
|
@ -187,7 +187,7 @@ size_t XtermSuggestionDisplay::fit_to_page_boundary(size_t selection_index)
|
|||
int index = 0;
|
||||
|
||||
auto* match = binary_search(
|
||||
m_pages.data(), m_pages.size(), { selection_index, selection_index }, [](auto& a, auto& b) -> int {
|
||||
m_pages.span(), { selection_index, selection_index }, [](auto& a, auto& b) -> int {
|
||||
if (a.start >= b.start && a.start < b.end)
|
||||
return 0;
|
||||
return a.start - b.start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue