From 49b68479a4b3f92d33f392560d94d46ee1378cb4 Mon Sep 17 00:00:00 2001 From: kit Date: Mon, 2 Feb 2026 21:17:30 -0500 Subject: [PATCH] Fix Go To Line crash --- editor/script/script_editor_base.cpp | 3 +++ editor/script/script_editor_plugin.cpp | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/editor/script/script_editor_base.cpp b/editor/script/script_editor_base.cpp index ef7939d3fa..42facc1f69 100644 --- a/editor/script/script_editor_base.cpp +++ b/editor/script/script_editor_base.cpp @@ -645,6 +645,9 @@ TextEditorBase::TextEditorBase() { edit_hb = memnew(HBoxContainer); + goto_line_popup = memnew(GotoLinePopup); + add_child(goto_line_popup); + Ref plain_highlighter; plain_highlighter.instantiate(); add_syntax_highlighter(plain_highlighter); diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index 0e7efa37b8..c8fece67c8 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -3395,10 +3395,9 @@ void ScriptEditor::update_docs_from_script(const Ref