TextEditor: fix highlighting whitespaces with ksyntax highlighter

Fixes: QTCREATORBUG-22097
Change-Id: Ia69198635e289fc6eff8d95bf1cdf59bda2e04e1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2019-03-14 10:04:33 +01:00
parent e3e45e9e8b
commit 429eb73ace

View File

@@ -290,6 +290,7 @@ void Highlighter::highlightBlock(const QString &text)
if (block.isValid()) if (block.isValid())
TextDocumentLayout::userData(block)->setSyntaxState(state); TextDocumentLayout::userData(block)->setSyntaxState(state);
formatSpaces(text);
} }
void Highlighter::applyFormat(int offset, int length, const KSyntaxHighlighting::Format &format) void Highlighter::applyFormat(int offset, int length, const KSyntaxHighlighting::Format &format)