mirror of https://github.com/sbt/sbt.git
Merge pull request #6147 from eatkins/1.4.x-backport-6145
[1.4.x] backport #6145 Print empty newlines with progress
This commit is contained in:
commit
c020e0d4f6
|
|
@ -111,7 +111,10 @@ private[sbt] final class ProgressState(
|
|||
if (appendNewline) toWrite ++= lineSeparatorBytes
|
||||
}
|
||||
parts.dropRight(1).foreach(appendLine(_, true))
|
||||
parts.lastOption.foreach(appendLine(_, bytes.endsWith(lineSeparatorBytes)))
|
||||
parts.lastOption match {
|
||||
case Some(l) => appendLine(l, bytes.endsWith(lineSeparatorBytes))
|
||||
case None => toWrite ++= lineSeparatorBytes
|
||||
}
|
||||
} else toWrite ++= bytes
|
||||
toWrite ++= clearScreenBytes
|
||||
if (endsWithNewLine) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue