summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorlupoDharkael <izhe@hotmail.es>2019-04-16 22:27:13 +0200
committerlupoDharkael <izhe@hotmail.es>2019-04-16 22:27:13 +0200
commit145a45fd3f15b3d7929e5e702b8828186fed34fb (patch)
tree77cc3f3b341aa53afbe262453980b57de08cd9db /editor
parent1e2b3ac407a39b6dc4b2835bfed86f50c7e71ddc (diff)
Fix code completion not working with class_name
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/script_text_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index c586985957..7832981eef 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -603,7 +603,7 @@ void ScriptTextEditor::_code_complete_script(const String &p_code, List<String>
base = _find_node_for_script(base, base, script);
}
String hint;
- Error err = script->get_language()->complete_code(p_code, script->get_path().get_base_dir(), base, r_options, r_force, hint);
+ Error err = script->get_language()->complete_code(p_code, script->get_path(), base, r_options, r_force, hint);
if (err == OK && hint != "") {
code_editor->get_text_edit()->set_code_hint(hint);
}