We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09ab311 + 7f9ea62 commit 6fdb17fCopy full SHA for 6fdb17f
compiler/src/dotty/tools/repl/terminal/Utils.scala
@@ -199,8 +199,9 @@ object FrontEndUtils {
199
.grouped(math.ceil(snippets.length * 1.0 / columns).toInt)
200
.toList
201
202
- transpose(grouped).iterator.flatMap {
203
- case first :+ last => first.map(
+ transpose(grouped).iterator.flatMap { group =>
+ val last = group.last
204
+ group.init.map(
205
x => x ++ " " * (width / columns - x.length)
206
) :+ last :+ Ansi.Str.parse(newLine)
207
}
0 commit comments