Skip to content

Commit

Permalink
progress: fix eating up line above the trackers (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedib0t authored Aug 23, 2018
1 parent a516594 commit d826629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion progress/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ func (p *Progress) renderTrackers(lastRenderLength int) int {
out.Grow(lastRenderLength)

// move up N times based on the number of active trackers
p.moveCursorToTheTop(&out)
if lastRenderLength > 0 {
p.moveCursorToTheTop(&out)
}

// find the currently "active" and "done" trackers
trackersActive, trackersDone := p.extractDoneAndActiveTrackers()
Expand Down

0 comments on commit d826629

Please sign in to comment.