From 3189a250c8bf9cae514052c45d92b84f5557a290 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Mon, 2 Sep 2024 11:38:29 +0800 Subject: [PATCH] Prevent text file being trimed by TextEditor --- editor/plugins/text_editor.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/editor/plugins/text_editor.cpp b/editor/plugins/text_editor.cpp index c1bcd43b2e29..98e1e6cd826b 100644 --- a/editor/plugins/text_editor.cpp +++ b/editor/plugins/text_editor.cpp @@ -286,11 +286,9 @@ Variant TextEditor::get_navigation_state() { } void TextEditor::trim_trailing_whitespace() { - code_editor->trim_trailing_whitespace(); } void TextEditor::trim_final_newlines() { - code_editor->trim_final_newlines(); } void TextEditor::insert_final_newline() {