Fix autocomplete for variable which is assigned to in the current statement

This commit is contained in:
cdemirer 2022-07-04 10:08:41 +03:00
parent 41fdddb1f8
commit 3a827349bf
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}