show progress for delete operation

Related #238
This commit is contained in:
Gokcehan committed 2019-12-02 19:50:13 +03:00
1 parent f76bf30f65
commit d5f989f373
3 files changed
+80 -49

No files matched your search

+4
View File
@@ -616,6 +616,10 @@ func (ui *ui) drawStatLine(nav *nav) {
progress += fmt.Sprintf(" [%d/%d]", nav.moveCount, nav.moveTotal)
}
if nav.deleteTotal > 0 {
progress += fmt.Sprintf(" [%d/%d]", nav.deleteCount, nav.deleteTotal)
}
ruler := fmt.Sprintf("%s%s %d/%d", acc, progress, ind, tot)
ui.msgWin.printRight(0, fg, bg, ruler)