mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +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:
commit
3d63c6b602
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue