fix indentation manipulations history writing
This commit is contained in:
@@ -846,6 +846,8 @@ void TextBox::onTab(bool shiftPressed) {
|
|||||||
int lastSelectionEnd = selectionEnd;
|
int lastSelectionEnd = selectionEnd;
|
||||||
size_t lastCaret = caret;
|
size_t lastCaret = caret;
|
||||||
|
|
||||||
|
auto combination = history->beginCombination();
|
||||||
|
|
||||||
resetSelection();
|
resetSelection();
|
||||||
|
|
||||||
for (int line = lineA; line <= lineB; line++) {
|
for (int line = lineA; line <= lineB; line++) {
|
||||||
@@ -884,6 +886,7 @@ void TextBox::onTab(bool shiftPressed) {
|
|||||||
} else {
|
} else {
|
||||||
selectionOrigin = selectionEnd;
|
selectionOrigin = selectionEnd;
|
||||||
}
|
}
|
||||||
|
historian->sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextBox::refreshSyntax() {
|
void TextBox::refreshSyntax() {
|
||||||
|
|||||||
Reference in New Issue
Block a user