changed == for >= since some statements may not store a line (if line is empty)

this is added to #5204
This commit is contained in:
Juan Linietsky 2016-06-17 21:19:09 -03:00
parent 3ddce309f4
commit dcd50f8838

View file

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