mirror of https://github.com/borgbackup/borg.git
Fix broken --progress for double-cell paths
This commit is contained in:
parent
895deccb06
commit
8164524d99
|
@ -95,7 +95,8 @@ class Statistics:
|
||||||
if space >= 8:
|
if space >= 8:
|
||||||
if space < swidth('...') + swidth(path):
|
if space < swidth('...') + swidth(path):
|
||||||
path = '%s...%s' % (path[:(space // 2) - swidth('...')], path[-space // 2:])
|
path = '%s...%s' % (path[:(space // 2) - swidth('...')], path[-space // 2:])
|
||||||
msg += "{0:<{space}}".format(path, space=space)
|
space -= swidth(path)
|
||||||
|
msg += path + ' ' * space
|
||||||
else:
|
else:
|
||||||
msg = ' ' * columns
|
msg = ' ' * columns
|
||||||
print(msg, file=stream or sys.stderr, end="\r", flush=True)
|
print(msg, file=stream or sys.stderr, end="\r", flush=True)
|
||||||
|
|
Loading…
Reference in New Issue