Invoke onBlockEnd() after the block highlighter is done.

This commit is contained in:
Roberto Raggi
2010-01-28 14:17:19 +01:00
parent fa925ccd5a
commit 280a99b6dc

View File

@@ -161,9 +161,8 @@ void QScriptHighlighter::highlightBlock(const QString &text)
else if (text.length() > lastEnd)
setFormat(lastEnd, text.length() - lastEnd, m_formats[VisualWhitespace]);
onBlockEnd(m_scanner.endState(), firstNonSpace);
setCurrentBlockState(m_scanner.endState());
onBlockEnd(m_scanner.endState(), firstNonSpace);
}
void QScriptHighlighter::setFormats(const QVector<QTextCharFormat> &s)