소스 검색

Fix broken --progress for double-cell paths

Marian Beermann 9 년 전
부모
커밋
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)