diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-06-17 03:54:28 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-06-17 03:54:28 +0200 |
commit | e5cfb9d6b206bec9a7644cc31ae7d136db4eb5a8 (patch) | |
tree | 687c127f52498c46a507cfb73b47b0c0746331c0 | |
parent | cd22551d2dccdcca3868a2dc61cc5edd8bd57bbd (diff) |
Fix selection undo... for real
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 83ce71e959..36d7dad1d3 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -5613,7 +5613,7 @@ void TextEdit::undo() { TextOperation op = undo_stack_pos->get(); _do_text_op(op, true); - if (op.from_line != op.to_line || op.to_column != op.from_column + 1) + if (op.type != TextOperation::TYPE_INSERT && (op.from_line != op.to_line || op.to_column != op.from_column + 1)) select(op.from_line, op.from_column, op.to_line, op.to_column); current_op.version = op.prev_version; |