IDEA-88486 Regression => Guard console is broken

Corrected cached console size update on processing lines which contain \r
This commit is contained in:
Denis.Zhdanov
2012-07-11 15:15:05 +04:00
parent a1bcc10701
commit 9d91e6c465
@@ -656,6 +656,7 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
}
if (strings.length > 0) {
document.insertString(document.getTextLength(), strings[strings.length - 1]);
myContentSize -= strings.length - 1;
}
}
finally {
@@ -1574,8 +1575,8 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
* replace text
*
* @param s text for replace
* @param start relativly to all document text
* @param end relativly to all document text
* @param start relatively to all document text
* @param end relatively to all document text
*/
private void replaceUserText(final String s, int start, int end) {
if (start == end) {