Forcibly end current TextEdit action on undo redo
This commit is contained in:
parent
3a59c833f1
commit
76005e5ff7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue