diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index 7374b1a0f47..23cfeac3b4b 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -2627,7 +2627,7 @@ bool ScriptEditor::edit(const Ref &p_resource, int p_line, int p_col, } if (p_line > 0) { - se->goto_line(p_line); + se->goto_line(p_line, p_col); } } _update_script_names(); @@ -2738,7 +2738,7 @@ bool ScriptEditor::edit(const Ref &p_resource, int p_line, int p_col, _update_modified_scripts_for_external_editor(p_resource); if (p_line >= 0) { - se->goto_line(p_line); + se->goto_line(p_line, p_col); } notify_script_changed(p_resource);