diff --git a/calculatorpp/src/main/java/org/solovyev/android/calculator/view/TextHighlighter.java b/calculatorpp/src/main/java/org/solovyev/android/calculator/view/TextHighlighter.java index 051491c4..cab60462 100644 --- a/calculatorpp/src/main/java/org/solovyev/android/calculator/view/TextHighlighter.java +++ b/calculatorpp/src/main/java/org/solovyev/android/calculator/view/TextHighlighter.java @@ -91,7 +91,7 @@ public class TextHighlighter implements TextProcessor 0) { - final StringBuilder text2 = new StringBuilder(); + final StringBuilder text2 = new StringBuilder(text1.length()); String s = text1.toString(); int i = processBracketGroup(text2, s, 0, 0, maxNumberOfOpenGroupSymbols);