summaryrefslogtreecommitdiff
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorEmmanuel Barroga <emmanuelbarroga@gmail.com>2019-06-15 07:24:03 -0700
committerEmmanuel Barroga <emmanuelbarroga@gmail.com>2019-06-16 09:48:42 -0700
commitfc568d9d5be2011bd24e42cf2a63684c734baa87 (patch)
treee85ca8dacd7bd506e6e9241ee8c29b2381d0c39c /editor/plugins/script_editor_plugin.cpp
parent9c7cce3c9b8062817e976676ff0f4772971895cb (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.cpp2
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;
}
}