mirror of
https://github.com/sbt/sbt.git
synced 2026-09-01 18:47:14 +02:00
refix #795
`math.min` should have been `math.max` here. It's currently chopping off the output of inspect tree.
This commit is contained in:
@@ -57,7 +57,7 @@ object Graph
|
||||
// [info] +-quux
|
||||
def toAscii[A](top: A, children: A => Seq[A], display: A => String): String = {
|
||||
val defaultWidth = 40
|
||||
val maxColumn = math.min(JLine.usingTerminal(_.getWidth), defaultWidth) - 8
|
||||
val maxColumn = math.max(JLine.usingTerminal(_.getWidth), defaultWidth) - 8
|
||||
val twoSpaces = " " + " " // prevent accidentally being converted into a tab
|
||||
def limitLine(s: String): String =
|
||||
if (s.length > maxColumn) s.slice(0, maxColumn - 2) + ".."
|
||||
|
||||
Reference in New Issue
Block a user