ui/termstatus: fix clearing status lines

To clear the status lines, they should be set to an empty array to
prevent future updates of those lines. Setting the status lines to an
array containing an empty string is wrong as this causes the output to
continuously add that empty status line after each message.
This commit is contained in:
Michael Eischer
2024-07-06 11:27:35 +02:00
parent 8e27a934de
commit aedead2823
5 changed files with 13 additions and 7 deletions

View File

@@ -121,7 +121,7 @@ func (b *TextProgress) ReportTotal(start time.Time, s archiver.ScanStats) {
// Reset status
func (b *TextProgress) Reset() {
if b.term.CanUpdateStatus() {
b.term.SetStatus([]string{""})
b.term.SetStatus(nil)
}
}