From 429eb73ace5909e228a58bf8b067823e2be44212 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 14 Mar 2019 10:04:33 +0100 Subject: TextEditor: fix highlighting whitespaces with ksyntax highlighter Fixes: QTCREATORBUG-22097 Change-Id: Ia69198635e289fc6eff8d95bf1cdf59bda2e04e1 Reviewed-by: Christian Stenger --- src/plugins/texteditor/highlighter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/texteditor/highlighter.cpp b/src/plugins/texteditor/highlighter.cpp index bbd19d2835..5b60b885ab 100644 --- a/src/plugins/texteditor/highlighter.cpp +++ b/src/plugins/texteditor/highlighter.cpp @@ -290,6 +290,7 @@ void Highlighter::highlightBlock(const QString &text) if (block.isValid()) TextDocumentLayout::userData(block)->setSyntaxState(state); + formatSpaces(text); } void Highlighter::applyFormat(int offset, int length, const KSyntaxHighlighting::Format &format) -- cgit v1.2.3