aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2019-03-14 10:04:33 +0100
committerDavid Schulz <david.schulz@qt.io>2019-03-14 09:44:11 +0000
commit429eb73ace5909e228a58bf8b067823e2be44212 (patch)
treede2e46f4d4e3a6b1ad78871a0190bd78a9cfe237
parente3e45e9e8b74a64d187a8baa86f53b36888bba1b (diff)
TextEditor: fix highlighting whitespaces with ksyntax highlighter
Fixes: QTCREATORBUG-22097 Change-Id: Ia69198635e289fc6eff8d95bf1cdf59bda2e04e1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/texteditor/highlighter.cpp1
1 files changed, 1 insertions, 0 deletions
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)