[apps/code] Get current script variables and functions

This commit is contained in:
Léa Saviot
2020-03-24 14:45:29 +01:00
committed by Émilie Feral
parent b9693f1f26
commit 7f486d790f
8 changed files with 281 additions and 134 deletions

View File

@@ -310,7 +310,7 @@ bool MathToolbox::selectLeaf(int selectedRow) {
// Remove the arguments if we kept one message for both inserted and displayed message
int maxTextToInsertLength = strlen(text) + 1;
assert(maxTextToInsertLength <= k_maxMessageSize);
Shared::ToolboxHelpers::TextToInsertForCommandText(text, textToInsert, maxTextToInsertLength, true);
Shared::ToolboxHelpers::TextToInsertForCommandText(text, -1, textToInsert, maxTextToInsertLength, true);
text = textToInsert;
}
sender()->handleEventWithText(text);