Skip to content

Commit

Permalink
Merge pull request #307 from pterm/issue-302-Progress_bar_doesnt_prin…
Browse files Browse the repository at this point in the history
…t_if_the_last_message_is_not_a_success
  • Loading branch information
MarvinJWendt committed Jan 16, 2022
2 parents 968f23a + e60aa9c commit cf02c55
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 cf02c55

Please sign in to comment.