changed == for >= since some statements may not store a line (if line is empty)
this is added to #5204
This commit is contained in:
parent
3ddce309f4
commit
dcd50f8838
1 changed files with 1 additions and 1 deletions
|
@ -1039,7 +1039,7 @@ static bool _guess_identifier_from_assignment_in_function(GDCompletionContext& c
|
|||
|
||||
for(int i=0;i<func->body->statements.size();i++) {
|
||||
|
||||
if (func->body->statements[i]->line == p_src_line) {
|
||||
if (func->body->statements[i]->line >= p_src_line) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue