diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-06 15:57:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-06 15:57:19 +0200 |
commit | fdff28e1a21e126719e377d6ce4b73e977cb0ddb (patch) | |
tree | de6684f94b63fa17254f19838d24986254872efa /modules/gdscript | |
parent | 4c56885bc0ac6d0e553ff9ad4603f0e276a6fb45 (diff) | |
parent | 3a827349bfe5cd9bc9b5b76b63fc1132b4a82eda (diff) |
Merge pull request #62699 from cdemirer/fix-autocomplete-var-assigned-same-statement
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 8479884154..0a1e1a22fb 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1855,7 +1855,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; } |