mirror of https://github.com/sbt/sbt.git
Workaround jline/jline2#205
This commit is contained in:
parent
ceca932026
commit
d4116b03f4
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue