From ce66f8a7a0e0efd6ad2aa84e807edc67c9fedd5c Mon Sep 17 00:00:00 2001 From: nova++ <3247833+novaplusplus@users.noreply.github.com> Date: Tue, 8 Mar 2022 13:20:09 -0500 Subject: [PATCH] Add check to prevent "p_gutter = -1" error spam --- editor/plugins/script_text_editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 3138801cdb9..10b6129864f 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1335,6 +1335,9 @@ void ScriptTextEditor::_change_syntax_highlighter(int p_idx) { void ScriptTextEditor::_notification(int p_what) { switch (p_what) { case NOTIFICATION_THEME_CHANGED: + if (!editor_enabled) { + break; + } if (is_visible_in_tree()) { _update_warnings(); _update_errors();