[apps/code] Use variable

This commit is contained in:
Léa Saviot
2020-04-24 17:00:16 +02:00
committed by Émilie Feral
parent 94e9a10f16
commit e7bfb3b5f3
2 changed files with 2 additions and 2 deletions

View File

@@ -742,7 +742,7 @@ bool VariableBoxController::addNodesFromImportMaybe(mp_parse_node_struct_t * par
* and "....function". */
constexpr int numberOfNodesToSkip = 3;
assert(numberOfChildren > numberOfNodesToSkip);
for (int i = 3; i < numberOfChildren; i++) {
for (int i = numberOfNodesToSkip; i < numberOfChildren; i++) {
const char * name = I18n::translate((moduleChildren + i)->label());
checkAndAddNode(textToAutocomplete, textToAutocompleteLength, ScriptNode::Type::WithoutParentheses, NodeOrigin::Importation, name, -1, importationSourceName, I18n::translate((moduleChildren + i)->text()) /*TODO LEA text or label?*/);
}