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

Fix ScriptEditor::edit() not jumping to the first line

This commit is contained in:
Artemy Fedotov
2025-08-31 16:55:05 +04:00
parent 2753d333f6
commit 0668944255

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