diff options
author | nova++ <3247833+novaplusplus@users.noreply.github.com> | 2022-03-08 13:20:09 -0500 |
---|---|---|
committer | Nova <3247833+novaplusplus@users.noreply.github.com> | 2022-03-08 20:23:46 -0500 |
commit | ce66f8a7a0e0efd6ad2aa84e807edc67c9fedd5c (patch) | |
tree | 1e818eb63f992d2435c7df1029553c0316782a48 | |
parent | fe95b61e529e366ffe317c5bf27ac5f5d10852e8 (diff) |
Add check to prevent "p_gutter = -1" error spam
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 3138801cdb..10b6129864 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(); |