浏览代码

Fix broken --progress for double-cell paths

Marian Beermann 8 年之前
父节点
当前提交
8164524d99
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/borg/archive.py

+ 2 - 1
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)