Merge pull request #110137 from fstxz/fix_edit_script

Fix `ScriptEditor::edit()` not jumping to the first line
This commit is contained in:
Thaddeus Crews 2025-09-22 21:00:57 -05:00
commit 3d63c6b602
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -2626,7 +2626,7 @@ bool ScriptEditor::edit(const Ref<Resource> &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);
}
}