diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-03 21:18:35 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-03 21:18:35 -0800 |
commit | 9c0339e8ec94aba12ce986dd019c9e9738447132 (patch) | |
tree | 921bb4d140821792717f305afbed6b9caf3c1bcb /core/src/main/scala | |
parent | 3d0b4b2591b6ea812bd15ab4b82ab004ed9d2138 (diff) | |
download | mill-9c0339e8ec94aba12ce986dd019c9e9738447132.tar.gz mill-9c0339e8ec94aba12ce986dd019c9e9738447132.tar.bz2 mill-9c0339e8ec94aba12ce986dd019c9e9738447132.zip |
tweak cross pprinter
Diffstat (limited to 'core/src/main/scala')
-rw-r--r-- | core/src/main/scala/mill/main/ReplApplyHandler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/mill/main/ReplApplyHandler.scala b/core/src/main/scala/mill/main/ReplApplyHandler.scala index a2da4a2f..6b065a58 100644 --- a/core/src/main/scala/mill/main/ReplApplyHandler.scala +++ b/core/src/main/scala/mill/main/ReplApplyHandler.scala @@ -35,7 +35,7 @@ class ReplApplyHandler(pprinter0: pprint.PPrinter, evaluator: Evaluator[_]) exte val millHandlers: PartialFunction[Any, pprint.Tree] = { case c: Cross[_] => pprint.Tree.Lazy( ctx => - Iterator(c.e.value, ":", c.l.value.toString) ++ + Iterator(c.e.value, ":", c.l.value.toString, ctx.applyPrefixColor("\nChildren:").toString) ++ c.items.iterator.map(x => "\n (" + x._1.map(pprint.PPrinter.BlackWhite.apply(_)).mkString(", ") + ")" ) |