mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
C#: Fix line in OpenInExternalEditor
This commit is contained in:
parent
83cc5d4914
commit
132a1daf1a
3 changed files with 6 additions and 5 deletions
|
@ -2331,7 +2331,7 @@ bool ScriptEditor::edit(const Ref<Resource> &p_resource, int p_line, int p_col,
|
|||
}
|
||||
|
||||
if (p_line > 0) {
|
||||
se->goto_line(p_line - 1);
|
||||
se->goto_line(p_line);
|
||||
}
|
||||
}
|
||||
_update_script_names();
|
||||
|
@ -2426,8 +2426,8 @@ bool ScriptEditor::edit(const Ref<Resource> &p_resource, int p_line, int p_col,
|
|||
_test_script_times_on_disk(p_resource);
|
||||
_update_modified_scripts_for_external_editor(p_resource);
|
||||
|
||||
if (p_line > 0) {
|
||||
se->goto_line(p_line - 1);
|
||||
if (p_line >= 0) {
|
||||
se->goto_line(p_line);
|
||||
}
|
||||
|
||||
notify_script_changed(p_resource);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue