From 9ce70d70e1aa9933b550c6df60bc6a9908cb58f0 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 15 Aug 2025 12:41:37 +0300 Subject: [PATCH] fix indentation manipulations history writing --- src/graphics/ui/elements/TextBox.cpp | 3 +++ 1 file changed, 3 insertions(+) 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() {