Commit 7f64e11c authored by mae's avatar mae
Browse files

the comma operator in C++ is evil

parent b9e376f5
...@@ -3403,7 +3403,7 @@ void BaseTextEditor::_q_highlightBlocks() ...@@ -3403,7 +3403,7 @@ void BaseTextEditor::_q_highlightBlocks()
block.length())); block.length()));
QTextCursor closeCursor; QTextCursor closeCursor;
bool firstRun = true; bool firstRun = true;
while (TextBlockUserData::findPreviousBlockOpenParenthesis(&cursor), firstRun) { while (TextBlockUserData::findPreviousBlockOpenParenthesis(&cursor, firstRun)) {
firstRun = false; firstRun = false;;;
highlightBlocksInfo.visualIndent.prepend(d->visualIndent(cursor.block())); highlightBlocksInfo.visualIndent.prepend(d->visualIndent(cursor.block()));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment