1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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

View File

@@ -2626,7 +2626,7 @@ bool ScriptEditor::edit(const Ref<Resource> &p_resource, int p_line, int p_col,
se->ensure_focus(); se->ensure_focus();
} }
if (p_line > 0) { if (p_line >= 0) {
se->goto_line(p_line, p_col); se->goto_line(p_line, p_col);
} }
} }