The second batch
[gitweb.git] / progress.c
index 0318bdd41b2f40b6f3cedeb8ca72ead677038d6e..a2e8cf64a8d1aa2f94c745bbb5098b9c771f3a05 100644 (file)
@@ -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);