summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-01-03 13:47:43 +0100
committerGitHub <noreply@github.com>2018-01-03 13:47:43 +0100
commitcdcf2e7e1c37834f1bdb2ee3fa2414a5ae5db2aa (patch)
tree65b218996cc2c9011fceaa1ac415a0dc67eb597e /editor/code_editor.cpp
parent8d03cafd7ca9037eb6137ab2d9bf7bf06306070f (diff)
parenta4fab0ab42b75a4eb6bb8a486ea6d65df02578c0 (diff)
downloadredot-engine-cdcf2e7e1c37834f1bdb2ee3fa2414a5ae5db2aa.tar.gz
Merge pull request #15126 from poke1024/code-editor-autowrap-error
Make code editor's error display autowrap
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r--editor/code_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 256fe302d7..4b59656903 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -1251,7 +1251,7 @@ CodeTextEditor::CodeTextEditor() {
error = memnew(Label);
status_bar->add_child(error);
- error->set_clip_text(true); //do not change, or else very long errors can push the whole container to the right
+ error->set_autowrap(true);
error->set_valign(Label::VALIGN_CENTER);
error->add_color_override("font_color", EditorNode::get_singleton()->get_gui_base()->get_color("error_color", "Editor"));
error->add_font_override("font", EditorNode::get_singleton()->get_gui_base()->get_font("status_source", "EditorFonts"));