Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sg/progress-off-by-one-fix'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 30 May 2019 17:50:45 +0000
(10:50 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 30 May 2019 17:50:45 +0000
(10:50 -0700)
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
progress.c
patch
|
blob
|
history
raw
(from parent 1:
2656ece
)
diff --git
a/progress.c
b/progress.c
index 0318bdd41b2f40b6f3cedeb8ca72ead677038d6e..a2e8cf64a8d1aa2f94c745bbb5098b9c771f3a05 100644
(file)
--- a/
progress.c
+++ b/
progress.c
@@
-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);