122
121
longFormula = longFormula.slice(0, textInputField.cursorPosition) + visual.toString() + longFormula.slice(textInputField.cursorPosition, longFormula.length);
123
122
shortFormula = longFormula;
126
125
var preservedCursorPosition = textInputField.cursorPosition;
127
126
displayedInputText = Formula.returnFormulaToDisplay(shortFormula);