Merge pull request #39 from eed3si9n/wip/jline

FPORT: Workaround for Jline regression
This commit is contained in:
Dale Wijnand 2016-05-02 08:51:20 +01:00
commit 39ed62ae82
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@ abstract class JLine extends LineReader {
val lines = """\r?\n""".r.split(prompt)
lines.length match {
case 0 | 1 => prompt
case _ => reader.print(lines.init.mkString("\n") + "\n"); lines.last;
case _ =>
// Workaround for regression jline/jline2#205
reader.getOutput.write(lines.init.mkString("\n") + "\n")
lines.last
}
}