Skip to content
Snippets Groups Projects
Commit 80a46231 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed QML indenter.

parent e2c06d5d
No related branches found
No related tags found
No related merge requests found
......@@ -622,6 +622,10 @@ void ScriptEditor::indentBlock(QTextDocument *, QTextBlock block, QChar typedCha
|| ((typedChar == QChar::Null) && block.text().trimmed() == "}")) {
QTextCursor tc(block);
if (typedChar == QLatin1Char('}')
tc = textCursor();
if (TextEditor::TextBlockUserData::findPreviousBlockOpenParenthesis(&tc)) {
const QString text = tc.block().text();
int indent = ts.columnAt(text, ts.firstNonSpace(text));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment