diff options
Diffstat (limited to 'tools/editor/plugins/script_editor_plugin.h')
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.h b/tools/editor/plugins/script_editor_plugin.h index 5664b26580..68aef4d39c 100644 --- a/tools/editor/plugins/script_editor_plugin.h +++ b/tools/editor/plugins/script_editor_plugin.h @@ -131,6 +131,7 @@ class ScriptEditor : public VBoxContainer { EDIT_SELECT_ALL, EDIT_COMPLETE, EDIT_AUTO_INDENT, + EDIT_TRIM_TRAILING_WHITESAPCE, EDIT_TOGGLE_COMMENT, EDIT_MOVE_LINE_UP, EDIT_MOVE_LINE_DOWN, @@ -238,6 +239,10 @@ class ScriptEditor : public VBoxContainer { void _add_callback(Object *p_obj, const String& p_function, const StringArray& p_args); void _res_saved_callback(const Ref<Resource>& p_res); + bool trim_trailing_whitespace_on_save; + + void _trim_trailing_whitespace(TextEdit *tx); + void _goto_script_line2(int p_line); void _goto_script_line(REF p_script,int p_line); void _breaked(bool p_breaked,bool p_can_debug); |