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); } }