mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[apps/code] autocompletionText uses the right text length
Before, there was no notion that the autocompleted text might not be a null terminated string.
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
|
||||
/* VariableBoxController */
|
||||
void loadFunctionsAndVariables(int scriptIndex, const char * textToAutocomplete);
|
||||
const char * autocompletionForText(int scriptIndex, const char * text);
|
||||
const char * autocompletionForText(int scriptIndex, const char * text, int * textToInsertLength);
|
||||
private:
|
||||
constexpr static int k_maxScriptObjectNameSize = 100;
|
||||
constexpr static int k_maxNumberOfDisplayedRows = 6; // 240/40
|
||||
|
||||
Reference in New Issue
Block a user