diff --git a/src/borg/archive.py b/src/borg/archive.py index b79fc5f95..6cc7aacc3 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -95,7 +95,8 @@ class Statistics: if space >= 8: if space < swidth('...') + swidth(path): path = '%s...%s' % (path[:(space // 2) - swidth('...')], path[-space // 2:]) - msg += "{0:<{space}}".format(path, space=space) + space -= swidth(path) + msg += path + ' ' * space else: msg = ' ' * columns print(msg, file=stream or sys.stderr, end="\r", flush=True)