Fix autocomplete for variable which is assigned to in the current statement
This commit is contained in:
parent
41fdddb1f8
commit
3a827349bf
|
@ -1843,7 +1843,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