diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2015-12-01 21:01:48 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2015-12-01 21:01:48 +0100 |
commit | 7ac31a7209e0be79a9d5c7c91cd35228821c545d (patch) | |
tree | e602057c61bb70dd8dc9109d73fe729cd23366a7 /tools | |
parent | 7b9dd1ea76be34b16c11c8765ef746f27cf25320 (diff) | |
parent | 4cbabf9691d422c9bc46b6f4d6d9431aa500c3ab (diff) |
Merge pull request #2969 from neikeq/fix_bracket_complete
Fix auto bracket completion disabled on newly open scripts
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 370f26231c..956e7a98a2 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1835,6 +1835,7 @@ void ScriptEditor::edit(const Ref<Script>& p_script) { ScriptTextEditor *ste = memnew( ScriptTextEditor ); ste->set_edited_script(p_script); ste->get_text_edit()->set_tooltip_request_func(this,"_get_debug_tooltip",ste); + ste->get_text_edit()->set_auto_brace_completion(EditorSettings::get_singleton()->get("text_editor/auto_brace_complete")); tab_container->add_child(ste); _go_to_tab(tab_container->get_tab_count()-1); |