From 0668944255b3439d230e46e326e1b273bad589dd Mon Sep 17 00:00:00 2001 From: Artemy Fedotov Date: Sun, 31 Aug 2025 16:55:05 +0400 Subject: [PATCH] Fix `ScriptEditor::edit()` not jumping to the first line --- editor/script/script_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index 23cfeac3b4b..cbc1067711d 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -2626,7 +2626,7 @@ bool ScriptEditor::edit(const Ref &p_resource, int p_line, int p_col, se->ensure_focus(); } - if (p_line > 0) { + if (p_line >= 0) { se->goto_line(p_line, p_col); } }