Explorar el Código

Fix broken --progress for double-cell paths

Marian Beermann hace 9 años
padre
commit
8164524d99
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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)