1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #37172 from theoway/autoCompletionBug

Fixed the auto-completion bug in gdscript_editor
This commit is contained in:
Rémi Verschelde
2020-04-24 17:27:04 +02:00
committed by GitHub

View File

@@ -2150,7 +2150,7 @@ static void _find_identifiers(const GDScriptCompletionContext &p_context, bool p
} }
const GDScriptParser::ClassNode *clss = p_context._class; const GDScriptParser::ClassNode *clss = p_context._class;
bool _static = !p_context.function || p_context.function->_static; bool _static = p_context.function && p_context.function->_static;
while (clss) { while (clss) {
GDScriptCompletionContext c = p_context; GDScriptCompletionContext c = p_context;