diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-11 15:07:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-11 15:07:09 +0200 |
| commit | 7842f4ca5c95becd19ada485f55aefde9f328468 (patch) | |
| tree | 1b8a0f409a9c59ca253193047d03609083b3cc0c /editor/plugins/script_text_editor.cpp | |
| parent | d8877d2df5440b04c4a9c7eeced3c48cf6661536 (diff) | |
| parent | 7fbb6d986ffe6101af1e062daeb9e1aa203684a6 (diff) | |
| download | redot-engine-7842f4ca5c95becd19ada485f55aefde9f328468.tar.gz | |
Merge pull request #29262 from DarknessCatt/issue-27476
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 1fe4ac1372..79867f40ca 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -457,6 +457,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(); |
