diff options
author | Matheus Lima Cunha <matheus.limacunha@hotmail.com> | 2019-05-28 18:27:32 -0300 |
---|---|---|
committer | Matheus Lima Cunha <matheus.limacunha@hotmail.com> | 2019-05-29 18:13:29 -0300 |
commit | 7fbb6d986ffe6101af1e062daeb9e1aa203684a6 (patch) | |
tree | 7062d63f37b3dd58f9a817e6577d4dbf59652edd /editor/plugins/script_text_editor.cpp | |
parent | 06e580f5ba801cf524b1d82753127a9992c7b907 (diff) | |
download | redot-engine-7fbb6d986ffe6101af1e062daeb9e1aa203684a6.tar.gz |
Automatically add new line to scripts
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 543771ad1c..d82207a92e 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -375,6 +375,11 @@ void ScriptTextEditor::trim_trailing_whitespace() { code_editor->trim_trailing_whitespace(); } +void ScriptTextEditor::insert_final_newline() { + + code_editor->insert_final_newline(); +} + void ScriptTextEditor::convert_indent_to_spaces() { code_editor->convert_indent_to_spaces(); |