mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Handle autocompletionAlternativeAtIndex with no nodes
This commit is contained in:
@@ -204,7 +204,9 @@ const char * VariableBoxController::autocompletionForText(int scriptIndex, const
|
||||
}
|
||||
|
||||
const char * VariableBoxController::autocompletionAlternativeAtIndex(int textToAutocompleteLength, int * textToInsertLength, bool * addParentheses, int index, int * indexToUpdate) {
|
||||
assert(numberOfRows() != 0);
|
||||
if (numberOfRows() == 0) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int nodesCount = 0; // We cannot use numberOfRows as it contains the banners
|
||||
NodeOrigin origins[] = {NodeOrigin::CurrentScript, NodeOrigin::Builtins, NodeOrigin::Importation};
|
||||
|
||||
Reference in New Issue
Block a user