summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtyom Lunchenkov <artem.lunchenkov@gmail.com>2023-01-07 14:01:10 +0600
committerRémi Verschelde <rverschelde@gmail.com>2023-06-19 15:57:27 +0200
commit613c060e0b5e02b99bb29c167dcd77ec51179894 (patch)
treee960bbb5729fd223f63073ff9b497b8fd1963c3c
parentc79183817df84faaa7a67a32c00c5a2bd46dc632 (diff)
downloadredot-engine-613c060e0b5e02b99bb29c167dcd77ec51179894.tar.gz
Add a line break to error messages in the script editor
Fixes #71002
-rw-r--r--editor/plugins/script_text_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index cd700d953a..5fdfb21176 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -548,6 +548,7 @@ void ScriptTextEditor::_update_warnings() {
warnings_panel->push_cell();
warnings_panel->add_text(w.message);
+ warnings_panel->add_newline();
warnings_panel->pop(); // Cell.
}
warnings_panel->pop(); // Table.
@@ -569,6 +570,7 @@ void ScriptTextEditor::_update_errors() {
errors_panel->push_cell();
errors_panel->add_text(err.message);
+ errors_panel->add_newline();
errors_panel->pop(); // Cell.
}
errors_panel->pop(); // Table