diff options
author | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-06-15 07:24:03 -0700 |
---|---|---|
committer | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-06-16 09:48:42 -0700 |
commit | fc568d9d5be2011bd24e42cf2a63684c734baa87 (patch) | |
tree | e85ca8dacd7bd506e6e9241ee8c29b2381d0c39c /editor/plugins/script_editor_plugin.cpp | |
parent | 9c7cce3c9b8062817e976676ff0f4772971895cb (diff) |
Bring selected script in view of open scripts list
Resolves issue: #29721
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 7456c5d016..1610e5d3d7 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2056,6 +2056,8 @@ bool ScriptEditor::edit(const RES &p_resource, int p_line, int p_col, bool p_gra se->goto_line(p_line - 1); } } + _update_script_names(); + script_list->ensure_current_is_visible(); return true; } } |