mirror of https://github.com/sbt/sbt.git
commit
8be482533a
|
|
@ -333,7 +333,7 @@ private[sbt] object SettingCompletions {
|
|||
else if (showDescriptions) {
|
||||
val withDescriptions = in map { case (id, key) => (id, description(key)) }
|
||||
val padded = CommandUtil.aligned("", " ", withDescriptions)
|
||||
padded.zip(in).map { case (line, (id, _)) =>
|
||||
padded.lazyZip(in).map { case (line, (id, _)) =>
|
||||
Completion.tokenDisplay(append = appendString(id), display = line + "\n")
|
||||
}
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ trait ChangeReport[T] {
|
|||
override def toString = {
|
||||
val labels = List("Checked", "Modified", "Unmodified", "Added", "Removed")
|
||||
val sets = List(checked, modified, unmodified, added, removed)
|
||||
val keyValues = labels.zip(sets).map { case (label, set) => label + ": " + set.mkString(", ") }
|
||||
val keyValues = labels.lazyZip(sets).map { (label, set) => label + ": " + set.mkString(", ") }
|
||||
keyValues.mkString("Change report:\n\t", "\n\t", "")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue