Rewrites the setText with AsciiString function.
@@ -778,12 +778,10 @@ public class TextArea extends Component {
final AsciiCharacter[] newCharacters = text.getCharacters();
- final AsciiString existingText = super.getString(rowIndex);
- final AsciiCharacter[] existingCharacters = existingText.getCharacters();
-
for (int x = 0 ; x < Math.min(maxVerticalCharacters, text.length()) ; x++) {
- final AsciiCharacter character = existingCharacters[x];
- character.copy(newCharacters[x]);
+ super.getString(rowIndex).getCharacters()[x].copy(newCharacters[x]);
+
+ enteredText[rowIndex][x] = newCharacters[x].getCharacter();
}
updateDisplayedCharacters();
