IDEA-78632 (IDEA 11 REGRESSION: CVS update truncates last line's EOL)

This commit is contained in:
Bas Leijdekkers
2011-12-15 17:22:15 +01:00
parent 3c22117b91
commit 03cf08a966
@@ -76,6 +76,10 @@ public class LineReader {
@Nullable
public byte[] readLine() throws IOException {
if (myBytesBuffered == -1) {
if (myLastEol != 0) {
myLastEol = 0;
return getLineArray();
}
return null;
} else if (myPosition >= myBytesBuffered) {
fillBuffer();