diff options
author | Raul Santos <raulsntos@gmail.com> | 2023-07-13 02:52:09 +0200 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2023-07-17 18:44:17 +0200 |
commit | 132a1daf1a7eac623829bd1d149f79ac95853c9a (patch) | |
tree | 01952cc3ba443cc04fbf77665259ec6cab963332 /editor/editor_interface.cpp | |
parent | 83cc5d4914a6bff76069ac19191192337e4df3de (diff) | |
download | redot-engine-132a1daf1a7eac623829bd1d149f79ac95853c9a.tar.gz |
C#: Fix line in OpenInExternalEditor
Diffstat (limited to 'editor/editor_interface.cpp')
-rw-r--r-- | editor/editor_interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_interface.cpp b/editor/editor_interface.cpp index d9d9dc01c0..8b2a51d4d2 100644 --- a/editor/editor_interface.cpp +++ b/editor/editor_interface.cpp @@ -280,7 +280,7 @@ void EditorInterface::edit_node(Node *p_node) { } void EditorInterface::edit_script(const Ref<Script> &p_script, int p_line, int p_col, bool p_grab_focus) { - ScriptEditor::get_singleton()->edit(p_script, p_line, p_col, p_grab_focus); + ScriptEditor::get_singleton()->edit(p_script, p_line - 1, p_col - 1, p_grab_focus); } void EditorInterface::open_scene_from_path(const String &scene_path) { |