Fix client highlighting

This commit is contained in:
Nikolay Degterinsky 2024-11-14 23:01:46 +00:00
parent 7007ce7596
commit 0bd6a1fb04

View File

@ -45,6 +45,10 @@ void Expected::highlight(HighlightedRange range)
return;
auto it = highlights.lower_bound(range);
if (it != highlights.begin())
it = std::prev(it);
while (it != highlights.end() && range.begin < it->end)
{
if (intersects(range.begin, range.end, it->begin, it->end))