mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/variable_box_controller] Auto-import: ignore variable when it is
the autocompleted one
This commit is contained in:
@@ -615,7 +615,7 @@ void VariableBoxController::loadCurrentVariablesInScript(const char * scriptCont
|
||||
assert(strncmp(tokenInText, name, nameLength) == 0);
|
||||
|
||||
ScriptNode::Type nodeType = (defToken || *(tokenInText + nameLength) == '(')? ScriptNode::Type::WithParentheses : ScriptNode::Type::WithoutParentheses;
|
||||
if (shouldAddNode(textToAutocomplete, textToAutocompleteLength, name, nameLength, nodeType, origin)) {
|
||||
if (tokenInText != textToAutocomplete && shouldAddNode(textToAutocomplete, textToAutocompleteLength, name, nameLength, nodeType, origin)) {
|
||||
addNode(nodeType, origin, tokenInText, nameLength);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user