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()
block.length()));
QTextCursor closeCursor;
bool firstRun = true;
while (TextBlockUserData::findPreviousBlockOpenParenthesis(&cursor), firstRun) {
while (TextBlockUserData::findPreviousBlockOpenParenthesis(&cursor, firstRun)) {
firstRun = false;
highlightBlocksInfo.open.prepend(cursor.blockNumber());
highlightBlocksInfo.visualIndent.prepend(d->visualIndent(cursor.block()));
......
Supports Markdown
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