Merge pull request #5810 from eatkins/progress-format

Improve progress display with limit + 1 tasks
This commit is contained in:
eugene yokota 2020-09-03 09:25:40 -04:00 committed by GitHub
commit 45ebebda5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ private[sbt] object ProgressState {
s" | => ${item.name} ${elapsed}s"
}
val limit = state.maxItems
if (base.size > limit)
if (base.size > limit + 1)
s" | ... (${base.size - limit} other tasks)" +: base.takeRight(limit)
else base
} else {