From 03cf08a966830fe81d75819bcf6b6bd9c60fdd22 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Thu, 15 Dec 2011 17:22:15 +0100 Subject: [PATCH] IDEA-78632 (IDEA 11 REGRESSION: CVS update truncates last line's EOL) --- .../com/intellij/cvsSupport2/javacvsImpl/io/LineReader.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/javacvsImpl/io/LineReader.java b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/javacvsImpl/io/LineReader.java index f5e640c42d2d..d26b67082ed8 100644 --- a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/javacvsImpl/io/LineReader.java +++ b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/javacvsImpl/io/LineReader.java @@ -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();