mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Load builtins according to autocompleted text
This commit is contained in:
@@ -124,7 +124,9 @@ bool EditorController::textAreaDidReceiveEvent(TextArea * textArea, Ion::Events:
|
||||
|
||||
VariableBoxController * EditorController::variableBoxForInputEventHandler(InputEventHandler * textInput) {
|
||||
VariableBoxController * varBox = App::app()->variableBoxController();
|
||||
varBox->loadFunctionsAndVariables(m_scriptIndex, m_editorView.textToAutocomplete());
|
||||
int length = 0;
|
||||
const char * text = m_editorView.textToAutocomplete(&length);
|
||||
varBox->loadFunctionsAndVariables(m_scriptIndex, text, length);
|
||||
return varBox;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user