You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Deselect on undo/redo in TextEdit
This commit is contained in:
@@ -4878,6 +4878,8 @@ void TextEdit::undo() {
|
|||||||
else
|
else
|
||||||
undo_stack_pos = undo_stack_pos->prev();
|
undo_stack_pos = undo_stack_pos->prev();
|
||||||
|
|
||||||
|
deselect();
|
||||||
|
|
||||||
TextOperation op = undo_stack_pos->get();
|
TextOperation op = undo_stack_pos->get();
|
||||||
_do_text_op(op, true);
|
_do_text_op(op, true);
|
||||||
current_op.version = op.prev_version;
|
current_op.version = op.prev_version;
|
||||||
@@ -4912,6 +4914,8 @@ void TextEdit::redo() {
|
|||||||
if (undo_stack_pos == NULL)
|
if (undo_stack_pos == NULL)
|
||||||
return; //nothing to do.
|
return; //nothing to do.
|
||||||
|
|
||||||
|
deselect();
|
||||||
|
|
||||||
TextOperation op = undo_stack_pos->get();
|
TextOperation op = undo_stack_pos->get();
|
||||||
_do_text_op(op, false);
|
_do_text_op(op, false);
|
||||||
current_op.version = op.version;
|
current_op.version = op.version;
|
||||||
|
|||||||
Reference in New Issue
Block a user