diff options
author | S.V.I. Vilcrow <svi@vilcrow.net> | 2023-12-20 00:27:01 +0300 |
---|---|---|
committer | S.V.I. Vilcrow <svi@vilcrow.net> | 2024-01-02 20:47:41 +0300 |
commit | c8fc824608efde15ae05a36ab6bab314ebcad01d (patch) | |
tree | bc3cd579340892de8adef1876f8cf2419840f59f /modules/gdscript/gdscript_editor.cpp | |
parent | 3ce73e5d419011d1642ed30a3417362b82c41898 (diff) | |
download | redot-engine-c8fc824608efde15ae05a36ab6bab314ebcad01d.tar.gz |
Fix the autocomplete function for the 'self' keyword.
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 87617cafab..9eb6fe8744 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1494,11 +1494,8 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context, } break; case GDScriptParser::Node::SELF: { if (p_context.current_class) { - if (p_context.type != GDScriptParser::COMPLETION_SUPER_METHOD) { - r_type.type = p_context.current_class->get_datatype(); - } else { - r_type.type = p_context.current_class->base_type; - } + r_type.type = p_context.current_class->get_datatype(); + r_type.type.is_meta_type = false; found = true; } } break; |