diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-07 14:53:10 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-07 14:53:10 +0200 |
commit | 40363a88bde046c5330781ad6cc7cee05f1b8c8b (patch) | |
tree | ebc34a9e2f303abc8d19aecaf43f04fd9fff707e /modules/gdscript/gdscript_editor.cpp | |
parent | 01758ea4cebc6bfe959be0f3f8d049887f81720f (diff) | |
parent | 4b724c9252ad6d3a27efc9c4a13ea300b6daaf16 (diff) | |
download | redot-engine-40363a88bde046c5330781ad6cc7cee05f1b8c8b.tar.gz |
Merge pull request #80283 from ajreckof/fix-completion-option-location-not-found
Fix completion option location not found
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index d27ea974e3..3019354d93 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1076,7 +1076,7 @@ static void _find_identifiers_in_base(const GDScriptCompletionIdentifier &p_base List<PropertyInfo> members; scr->get_script_property_list(&members); for (const PropertyInfo &E : members) { - int location = p_recursion_depth + _get_property_location(scr->get_class_name(), E.class_name); + int location = p_recursion_depth + _get_property_location(scr->get_class_name(), E.name); ScriptLanguage::CodeCompletionOption option(E.name, ScriptLanguage::CODE_COMPLETION_KIND_MEMBER, location); r_result.insert(option.display, option); } @@ -1150,7 +1150,7 @@ static void _find_identifiers_in_base(const GDScriptCompletionIdentifier &p_base if (E.name.contains("/")) { continue; } - int location = p_recursion_depth + _get_property_location(type, E.class_name); + int location = p_recursion_depth + _get_property_location(type, E.name); ScriptLanguage::CodeCompletionOption option(E.name, ScriptLanguage::CODE_COMPLETION_KIND_MEMBER, location); r_result.insert(option.display, option); } |