forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user