Fix progress bar still overflowing

This commit is contained in:
2025-10-30 13:57:40 +02:00
parent b07a7f8778
commit 7e372eef91
+2 -1
View File
@@ -82,7 +82,8 @@ func createProgressBar(max int64, description string, hideBar bool) *progressbar
}
}
if len(description) > 40 {
description = description[:len(description)-5] + "..."
overflow := len(description) - 37
description = description[:len(description)-overflow] + "..."
}
return progressbar.NewOptions64(max,