Commit 2e1a21cd authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

set ZDepth for SemanticHighlighting ranges

May fix issues such as
 - Highlighting occurunces not working
 - Bracket highlighting not working
parent 14f33bf9
......@@ -204,12 +204,14 @@ void SemanticHighlighter::highlight(KTextEditor::View *view, const SemanticToken
reusedRanges++;
// clear attribute first so that we block some of the notifyAboutRangeChange stuff!
range->setAttribute(KTextEditor::Attribute::Ptr(nullptr));
range->setZDepth(-90000.0);
range->setRange(r);
range->setAttribute(attribute);
continue;
}
std::unique_ptr<KTextEditor::MovingRange> mr(miface->newMovingRange(r));
mr->setZDepth(-90000.0);
mr->setAttribute(attribute);
movingRanges.push_back(std::move(mr));
newRanges++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment