diff options
| author | Juan Linietsky | 2017-08-24 00:06:56 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-08-24 00:06:56 -0300 |
| commit | 36e0a72c77348d4a1f2195937dff8dba88f7e044 (patch) | |
| tree | a3e798e46199c18f729ab9c692dde990e3c3250b /editor/code_editor.cpp | |
| parent | 3d1c03187132677800b7f6bc609eeef8fe51f315 (diff) | |
| download | godot-36e0a72c77348d4a1f2195937dff8dba88f7e044.tar.gz godot-36e0a72c77348d4a1f2195937dff8dba88f7e044.tar.zst godot-36e0a72c77348d4a1f2195937dff8dba88f7e044.zip | |
Diffstat (limited to 'editor/code_editor.cpp')
| -rw-r--r-- | editor/code_editor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 4575bfcb0..d49b240c8 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -1036,8 +1036,9 @@ void CodeTextEditor::_complete_request() { List<String> entries; String ctext = text_editor->get_text_for_completion(); _code_complete_script(ctext, &entries); + bool forced = false; if (code_complete_func) { - code_complete_func(code_complete_ud, ctext, &entries); + code_complete_func(code_complete_ud, ctext, &entries, forced); } // print_line("COMPLETE: "+p_request); if (entries.size() == 0) @@ -1050,7 +1051,7 @@ void CodeTextEditor::_complete_request() { strs[i++] = E->get(); } - text_editor->code_complete(strs); + text_editor->code_complete(strs, forced); } void CodeTextEditor::_font_resize_timeout() { @@ -1267,6 +1268,7 @@ CodeTextEditor::CodeTextEditor() { cs.push_back("."); cs.push_back(","); cs.push_back("("); + cs.push_back("="); cs.push_back("$"); text_editor->set_completion(true, cs); idle->connect("timeout", this, "_text_changed_idle_timeout"); |
