Commit 923eb419 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Set an even smaller zDepth to avoid flicker

Since both warning/errors and lsp semantic highlighting have same ZDepth, they
keep fighting for preference resulting in flickery syntax highlighting
when you are typing. Decrease the ZDepth for semantic highlighting.
parent 8b8d1ce6
Pipeline #133386 passed with stage
in 2 minutes and 11 seconds
......@@ -225,7 +225,7 @@ 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->setZDepth(-91000.0);
range->setRange(r);
range->setAttribute(attribute);
continue;
......
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