From 3bc0445e05e633c8336851363d3a09f02771b79c Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Sat, 9 Mar 2019 01:26:49 +0100 Subject: Allow to undo TextEdit.set_text --- editor/plugins/script_text_editor.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'editor/plugins/script_text_editor.cpp') diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index e95b1356bf..9fc488ea4e 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -302,7 +302,6 @@ void ScriptTextEditor::reload_text() { int v = te->get_v_scroll(); te->set_text(script->get_source_code()); - te->clear_undo_history(); te->cursor_set_line(row); te->cursor_set_column(column); te->set_h_scroll(h); -- cgit v1.2.3