mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Merge pull request #62699 from cdemirer/fix-autocomplete-var-assigned-same-statement
This commit is contained in:
commit
fdff28e1a2
@ -1855,7 +1855,7 @@ static bool _guess_identifier_type(GDScriptParser::CompletionContext &p_context,
|
||||
|
||||
while (suite) {
|
||||
for (int i = 0; i < suite->statements.size(); i++) {
|
||||
if (suite->statements[i]->start_line > p_context.current_line) {
|
||||
if (suite->statements[i]->end_line >= p_context.current_line) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user