فهرست منبع

Fixed undo redo interaction with find replace

Paulb23 9 سال پیش
والد
کامیت
189b306722
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      tools/editor/code_editor.cpp

+ 2 - 1
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();
 }