Show progress immediately when copying files (#2093)

This commit is contained in:
Joe Lim authored and GitHub committed 2025-08-12 14:20:19 +10:00
1 parent 651264e4de
commit f716ce1b0f
3 files changed
+20 -3

No files matched your search

+6 -2
View File
@@ -963,8 +963,12 @@ func (ui *ui) drawRuler(nav *nav) {
progress := []string{}
if nav.copyTotal > 0 {
progress = append(progress, fmt.Sprintf("[%d%%]", nav.copyBytes*100/nav.copyTotal))
if nav.copyJobs > 0 {
if nav.copyTotal == 0 {
progress = append(progress, fmt.Sprintf("[0%%]"))
} else {
progress = append(progress, fmt.Sprintf("[%d%%]", nav.copyBytes*100/nav.copyTotal))
}
}
if nav.moveTotal > 0 {