Skip to content

Commit

Permalink
fix(progressbar): refresh progressbars on every PTerm print (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Jan 16, 2022
1 parent 968f23a commit e60aa9c
Show file tree
Hide file tree
Showing 28 changed files with 7 additions and 27 deletions.
7 changes: 7 additions & 0 deletions print.go
Expand Up @@ -73,6 +73,13 @@ func Print(a ...interface{}) {
}

color.Print(Sprint(ret))

// Refresh all progressbars in case they were overwritten previously. Reference: #302
for _, bar := range ActiveProgressBarPrinters {
if bar.IsActive {
bar.UpdateTitle(bar.Title)
}
}
}

// Println formats using the default formats for its operands and writes to standard output.
Expand Down
1 change: 0 additions & 1 deletion testdata/snapshots/TestBarChartPrinterNilStylePrint.testza

This file was deleted.

1 change: 0 additions & 1 deletion testdata/snapshots/TestBarChartPrinter_Render.testza

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e60aa9c

Please sign in to comment.