mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix indentation manipulations history writing
This commit is contained in:
parent
140841f65c
commit
9ce70d70e1
1 changed files with 3 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue