Commit 07bd36b6 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Expand the tab characters.

parent 4774ba14
......@@ -621,7 +621,8 @@ void ScriptEditor::indentBlock(QTextDocument *, QTextBlock block, QChar typedCha
QTextCursor tc = textCursor();
if (TextEditor::TextBlockUserData::findPreviousBlockOpenParenthesis(&tc)) {
const QString text = tc.block().text();
ts.indentLine(block, ts.lineIndentPosition(text));
int indent = ts.columnAt(text, ts.firstNonSpace(text));
ts.indentLine(block, indent);
return;
}
}
......@@ -642,7 +643,7 @@ void ScriptEditor::indentBlock(QTextDocument *, QTextBlock block, QChar typedCha
const QString text = it.text();
if (! text.isEmpty()) {
indent = ts.lineIndentPosition(text);
indent = ts.columnAt(text, ts.firstNonSpace(text));
break;
}
}
......
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