diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-10-14 17:05:43 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-10-14 17:05:43 +0000 |
commit | 05672898a1d77c7d5b4f717906e95e22564fd2c8 (patch) | |
tree | 6d1d76556e78a8ac39647b9ff1519351691db2ef /src/compiler | |
parent | 34112093ef4cedba01c3d04eccf90573f1ddded2 (diff) | |
download | scala-05672898a1d77c7d5b4f717906e95e22564fd2c8.tar.gz scala-05672898a1d77c7d5b4f717906e95e22564fd2c8.tar.bz2 scala-05672898a1d77c7d5b4f717906e95e22564fd2c8.zip |
fixed an off-by-one error that would lose the last
character of a bulk write
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ConsoleWriter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ConsoleWriter.scala b/src/compiler/scala/tools/nsc/ConsoleWriter.scala index d5ec1bd61a..5d0322a531 100644 --- a/src/compiler/scala/tools/nsc/ConsoleWriter.scala +++ b/src/compiler/scala/tools/nsc/ConsoleWriter.scala @@ -20,7 +20,7 @@ class ConsoleWriter extends Writer { def write(cbuf: Array[Char], off: Int, len: Int) { if (len > 0) - write(new String(cbuf.subArray(off, off+len-1))) + write(new String(cbuf.subArray(off, off+len))) } override def write(str: String) { Console.print(str) } |