forked from qt-creator/qt-creator
Editor: always set format for visual whitespace
Change-Id: I2ab4cb9f77d649c1c7d51dec1ef11005325a4710 Fixes: QTCREATORBUG-23040 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -302,8 +302,10 @@ static bool isClosingParenthesis(QChar c)
|
||||
|
||||
void Highlighter::highlightBlock(const QString &text)
|
||||
{
|
||||
if (!definition().isValid())
|
||||
if (!definition().isValid()) {
|
||||
formatSpaces(text);
|
||||
return;
|
||||
}
|
||||
QTextBlock block = currentBlock();
|
||||
KSyntaxHighlighting::State state;
|
||||
TextDocumentLayout::setBraceDepth(block, TextDocumentLayout::braceDepth(block.previous()));
|
||||
|
Reference in New Issue
Block a user