mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-88486 Regression => Guard console is broken
Corrected cached console size update on processing lines which contain \r
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user