Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/progressbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,7 @@ static void progressbar_draw(const progressbar *bar)
? progressbar_calc_time_components(difftime(time(NULL), bar->start))
: progressbar_calc_time_components(progressbar_remaining_seconds(bar));

if (label_width == 0) {
// The label would usually have a trailing space, but in the case that we don't print
// a label, the bar can use that space instead.
bar_width += 1;
} else {
if (label_width != 0) {
// Draw the label
fwrite(bar->label, 1, label_width, stderr);
fputc(' ', stderr);
Expand Down