Commit 37565602 authored by Christian Kamm's avatar Christian Kamm
Browse files

C++ editor: Put the changes for indenting a selection in an edit block.

Reviewed-by: Roberto Raggi
parent e086c67e
......@@ -1563,11 +1563,14 @@ void CPPEditor::indent(QTextDocument *doc, const QTextCursor &cursor, QChar type
CppTools::QtStyleCodeFormatter codeFormatter = setupCodeFormatter(ts);
QTextCursor tc = textCursor();
do {
ts.indentLine(block, codeFormatter.indentFor(block));
block =;
} while (block.isValid() && block != end);
} else {
indentBlock(doc, cursor.block(), typedChar);
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