summaryrefslogtreecommitdiffstats
path: root/editor/editor_interface.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-02 12:17:31 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-02 12:17:31 +0200
commit2132638937a006ad2632da1676136f5d8f40e9cb (patch)
tree7435f718f7a04acdae17469dbfee5ba9642fe7b9 /editor/editor_interface.cpp
parent2a9aaae8a5225a287a236f0f5170a6e9ac066baa (diff)
parent132a1daf1a7eac623829bd1d149f79ac95853c9a (diff)
downloadredot-engine-2132638937a006ad2632da1676136f5d8f40e9cb.tar.gz
Merge pull request #79404 from raulsntos/dotnet/lines-open-in-external-editor
C#: Fix line in OpenInExternalEditor
Diffstat (limited to 'editor/editor_interface.cpp')
-rw-r--r--editor/editor_interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_interface.cpp b/editor/editor_interface.cpp
index 8d63082f31..94040d4ca0 100644
--- a/editor/editor_interface.cpp
+++ b/editor/editor_interface.cpp
@@ -289,7 +289,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) {