Skip to content

Commit fb7d282

Browse files
committed
Fix ScriptEditor::edit() ignoring column parameter
1 parent 0c51ede commit fb7d282

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/script/script_editor_plugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,7 +2627,7 @@ bool ScriptEditor::edit(const Ref<Resource> &p_resource, int p_line, int p_col,
26272627
}
26282628

26292629
if (p_line > 0) {
2630-
se->goto_line(p_line);
2630+
se->goto_line(p_line, p_col);
26312631
}
26322632
}
26332633
_update_script_names();
@@ -2738,7 +2738,7 @@ bool ScriptEditor::edit(const Ref<Resource> &p_resource, int p_line, int p_col,
27382738
_update_modified_scripts_for_external_editor(p_resource);
27392739

27402740
if (p_line >= 0) {
2741-
se->goto_line(p_line);
2741+
se->goto_line(p_line, p_col);
27422742
}
27432743

27442744
notify_script_changed(p_resource);

0 commit comments

Comments
 (0)