From 7fbb6d986ffe6101af1e062daeb9e1aa203684a6 Mon Sep 17 00:00:00 2001 From: Matheus Lima Cunha Date: Tue, 28 May 2019 18:27:32 -0300 Subject: Automatically add new line to scripts --- modules/visual_script/visual_script_editor.cpp | 3 +++ modules/visual_script/visual_script_editor.h | 1 + 2 files changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 6e7e566206..5bd152d08d 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -2102,6 +2102,9 @@ void VisualScriptEditor::goto_line(int p_line, bool p_with_error) { void VisualScriptEditor::trim_trailing_whitespace() { } +void VisualScriptEditor::insert_final_newline() { +} + void VisualScriptEditor::convert_indent_to_spaces() { } diff --git a/modules/visual_script/visual_script_editor.h b/modules/visual_script/visual_script_editor.h index f4b4a6981d..ff9c23d507 100644 --- a/modules/visual_script/visual_script_editor.h +++ b/modules/visual_script/visual_script_editor.h @@ -264,6 +264,7 @@ public: virtual void set_edit_state(const Variant &p_state); virtual void goto_line(int p_line, bool p_with_error = false); virtual void trim_trailing_whitespace(); + virtual void insert_final_newline(); virtual void convert_indent_to_spaces(); virtual void convert_indent_to_tabs(); virtual void ensure_focus(); -- cgit v1.2.3