diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-05-09 17:00:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-09 17:00:14 +0200 |
commit | 36787621f95a74a8f02cfead23e8dd959e08b527 (patch) | |
tree | 405c244cf6a336c4fef0fafc9f14d4fd79eb9f6a | |
parent | 0f930f831410bc57d0e975b4ab73715d0d034735 (diff) | |
parent | b09e0454bb4049c2cf92b92a7194d9c016fbb736 (diff) |
Merge pull request #18743 from Zouch/master
Consider TextEdit paste operation complex.
-rw-r--r-- | scene/gui/text_edit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 4c9f515ced..4ff74dbb3f 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4236,6 +4236,7 @@ void TextEdit::paste() { String clipboard = OS::get_singleton()->get_clipboard(); + begin_complex_operation(); if (selection.active) { selection.active = false; @@ -4252,6 +4253,8 @@ void TextEdit::paste() { } _insert_text_at_cursor(clipboard); + end_complex_operation(); + update(); } |