Browse Source

Merge pull request #84907 from miv391/fix-gutter-error

Do not bother with line colors if `line_number_gutter` is not yet calculated
Rémi Verschelde 1 year ago
parent
commit
4320d53a2b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      editor/plugins/script_text_editor.cpp

+ 3 - 1
editor/plugins/script_text_editor.cpp

@@ -341,7 +341,9 @@ void ScriptTextEditor::reload_text() {
 	te->tag_saved_version();
 
 	code_editor->update_line_and_column();
-	_validate_script();
+	if (editor_enabled) {
+		_validate_script();
+	}
 }
 
 void ScriptTextEditor::add_callback(const String &p_function, const PackedStringArray &p_args) {