diff --git a/src/graphics/ui/elements/TextBox.cpp b/src/graphics/ui/elements/TextBox.cpp index 34e2784a..1755b6b9 100644 --- a/src/graphics/ui/elements/TextBox.cpp +++ b/src/graphics/ui/elements/TextBox.cpp @@ -846,6 +846,8 @@ void TextBox::onTab(bool shiftPressed) { int lastSelectionEnd = selectionEnd; size_t lastCaret = caret; + auto combination = history->beginCombination(); + resetSelection(); for (int line = lineA; line <= lineB; line++) { @@ -884,6 +886,7 @@ void TextBox::onTab(bool shiftPressed) { } else { selectionOrigin = selectionEnd; } + historian->sync(); } void TextBox::refreshSyntax() {