aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/code_editor.cpp
diff options
context:
space:
mode:
authorPaulb232016-04-09 01:27:14 +0100
committerRémi Verschelde2016-04-27 08:42:23 +0200
commite367c6cdd838cb8c645c254df9c4e8d0c1846cbc (patch)
treeda6b0ecac37370dd9a523d9b4d20f07343e1f770 /tools/editor/code_editor.cpp
parentb5a438413a338f47fcdd47b987b28d68e25fc99a (diff)
downloadgodot-e367c6cdd838cb8c645c254df9c4e8d0c1846cbc.tar.gz
godot-e367c6cdd838cb8c645c254df9c4e8d0c1846cbc.tar.zst
godot-e367c6cdd838cb8c645c254df9c4e8d0c1846cbc.zip
Fixed undo redo interaction with find replace
(cherry picked from commit 189b3067221831bf116058f06322a5b4f2c49e43)
Diffstat (limited to '')
-rw-r--r--tools/editor/code_editor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/code_editor.cpp b/tools/editor/code_editor.cpp
index 968d02dfa..cf8f40430 100644
--- a/tools/editor/code_editor.cpp
+++ b/tools/editor/code_editor.cpp
@@ -148,6 +148,7 @@ void FindReplaceDialog::_replace_skip_callback() {
void FindReplaceDialog::_replace() {
+ text_edit->begin_complex_operation();
if (is_replace_all_mode()) {
//line as x so it gets priority in comparison, column as y
@@ -228,7 +229,7 @@ void FindReplaceDialog::_replace() {
_search();
}
-
+ text_edit->end_complex_operation();
}