1
0
Fork 0

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
No known key found for this signature in database
GPG Key ID: C98F659A7C4525DA
1 changed files with 1 additions and 1 deletions

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