fix indentation manipulations history writing

This commit is contained in:
MihailRis 2025-08-15 12:41:37 +03:00
parent 140841f65c
commit 9ce70d70e1

View File

@ -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() {