Merge pull request #62699 from cdemirer/fix-autocomplete-var-assigned-same-statement
This commit is contained in:
commit
fdff28e1a2
1 changed files with 1 additions and 1 deletions
|
@ -1855,7 +1855,7 @@ static bool _guess_identifier_type(GDScriptParser::CompletionContext &p_context,
|
||||||
|
|
||||||
while (suite) {
|
while (suite) {
|
||||||
for (int i = 0; i < suite->statements.size(); i++) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue