Forcibly end current TextEdit action on undo redo

This commit is contained in:
Paulb23 2022-10-16 16:28:22 +01:00
parent 3a59c833f1
commit 76005e5ff7
1 changed files with 6 additions and 0 deletions

View File

@ -3810,6 +3810,9 @@ void TextEdit::undo() {
return;
}
if (in_action) {
pending_action_end = true;
}
_push_current_op();
if (undo_stack_pos == nullptr) {
@ -3871,6 +3874,9 @@ void TextEdit::redo() {
return;
}
if (in_action) {
pending_action_end = true;
}
_push_current_op();
if (undo_stack_pos == nullptr) {