aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulb232016-04-09 01:27:14 +0100
committerPaulb232016-04-09 01:27:14 +0100
commit189b3067221831bf116058f06322a5b4f2c49e43 (patch)
tree5fcae82e1f9b53f15713a1227afb5e1895db1795
parentd454e64f429affb89de036eed6daa5c6e5278492 (diff)
downloadgodot-189b3067221831bf116058f06322a5b4f2c49e43.tar.gz
godot-189b3067221831bf116058f06322a5b4f2c49e43.tar.zst
godot-189b3067221831bf116058f06322a5b4f2c49e43.zip
Fixed undo redo interaction with find replace
-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();
}