From e367c6cdd838cb8c645c254df9c4e8d0c1846cbc Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 9 Apr 2016 01:27:14 +0100 Subject: [PATCH] Fixed undo redo interaction with find replace (cherry picked from commit 189b3067221831bf116058f06322a5b4f2c49e43) --- tools/editor/code_editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/editor/code_editor.cpp b/tools/editor/code_editor.cpp index 968d02dfa56..cf8f40430b5 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(); }