Skip to content

Commit

Permalink
Merge branch 'sg/progress-off-by-one-fix'
Browse files Browse the repository at this point in the history
A brown-paper-bag bugfix to a change already in 'master'.

* sg/progress-off-by-one-fix:
  progress: avoid empty line when breaking the progress line
  • Loading branch information
gitster committed May 30, 2019
2 parents 2656ece + 1aed1a5 commit fa03d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progress.c
Expand Up @@ -128,7 +128,7 @@ static void display(struct progress *progress, uint64_t n, const char *done)
(int) clear_len, eol);
} else if (!done && cols < progress_line_len) {
clear_len = progress->title_len + 1 < cols ?
cols - progress->title_len : 0;
cols - progress->title_len - 1 : 0;
fprintf(stderr, "%s:%*s\n %s%s",
progress->title, (int) clear_len, "",
counters_sb->buf, eol);
Expand Down

0 comments on commit fa03d9c

Please sign in to comment.