summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-04-11 09:53:11 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-04-11 09:53:11 +0200
commitb6a2459870412d887b2fe3dd1011bf446b5bfe2b (patch)
tree7c82f0ecf02b98724f3dd5426227a686581b1a7e /tools/editor
parente8a0b2462b11528838ad5890f2146a84a9e70f93 (diff)
parent189b3067221831bf116058f06322a5b4f2c49e43 (diff)
Merge pull request #4268 from Paulb23/find_replace_undo_redo_fix
Fixed undo redo interaction with find replace
Diffstat (limited to 'tools/editor')
-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 968d02dfa5..cf8f40430b 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();
}