mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Added comment in ConsoleViewImpl
This commit is contained in:
@@ -709,7 +709,7 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
|
||||
}
|
||||
try {
|
||||
myInDocumentUpdate = true;
|
||||
String[] strings = addedText.split("\\r", -1);
|
||||
String[] strings = addedText.split("\\r", -1); // limit must be any negative number to avoid discarding of trailing empty strings
|
||||
for (int i = 0; i < strings.length - 1; i++) {
|
||||
document.insertString(document.getTextLength(), strings[i]);
|
||||
int lastLine = document.getLineCount() - 1;
|
||||
|
||||
Reference in New Issue
Block a user