Text editor: Redraw cursor when indenting

The one line patch was submited as part of the report.

Task-number: QTCREATORBUG-3497
This commit is contained in:
Leandro Melo
2011-02-02 10:56:00 +01:00
parent ee00f62be4
commit 1a55de5d0e

View File

@@ -4371,6 +4371,7 @@ void BaseTextEditor::indentOrUnindent(bool doIndent)
cursor.setPosition(block.position() + indentPosition - spaces, QTextCursor::KeepAnchor);
cursor.removeSelectedText();
cursor.insertText(tabSettings.indentationString(startColumn, targetColumn, block));
setTextCursor(cursor);
}
cursor.endEditBlock();