diff options
author | Aiden Storey <git@storey.dev> | 2024-01-12 00:32:13 -0500 |
---|---|---|
committer | Aiden Storey <git@storey.dev> | 2024-05-02 22:57:34 -0400 |
commit | b4c1634b52f619ca8987b67ecee2640310781aa7 (patch) | |
tree | 592faafc74fefb2dfb3e4a5ff4d8e63fb2e52513 /editor/plugins/text_editor.h | |
parent | d4f726f3ef21cef3e7936b2c9770cdac6478b8ee (diff) | |
download | redot-engine-b4c1634b52f619ca8987b67ecee2640310781aa7.tar.gz |
Implement trim_final_newlines functionality
Diffstat (limited to 'editor/plugins/text_editor.h')
-rw-r--r-- | editor/plugins/text_editor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/text_editor.h b/editor/plugins/text_editor.h index 38fddc45df..268e5c32b4 100644 --- a/editor/plugins/text_editor.h +++ b/editor/plugins/text_editor.h @@ -63,6 +63,7 @@ private: EDIT_PASTE, EDIT_SELECT_ALL, EDIT_TRIM_TRAILING_WHITESAPCE, + EDIT_TRIM_FINAL_NEWLINES, EDIT_CONVERT_INDENT_TO_SPACES, EDIT_CONVERT_INDENT_TO_TABS, EDIT_MOVE_LINE_UP, @@ -133,6 +134,7 @@ public: virtual void set_executing_line(int p_line) override; virtual void clear_executing_line() override; virtual void trim_trailing_whitespace() override; + virtual void trim_final_newlines() override; virtual void insert_final_newline() override; virtual void convert_indent() override; virtual void ensure_focus() override; |