summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-04 20:43:30 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-04 20:43:30 +0100
commit4320d53a2bec49a06e46ca02af77e8c145fc49d6 (patch)
treec573ad69e968808593121b3776285e3a39994ffb
parent9f4a76498548bc7f86aaa5b3841fa16b8dc4d285 (diff)
parent0fbc857e3f0fead7532699abc66e2005b266309b (diff)
downloadredot-engine-4320d53a2bec49a06e46ca02af77e8c145fc49d6.tar.gz
Merge pull request #84907 from miv391/fix-gutter-error
Do not bother with line colors if `line_number_gutter` is not yet calculated
-rw-r--r--editor/plugins/script_text_editor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index 4c08449b8d..13b1c4b6ac 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/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) {