Use the repeat escape code for progress bar rendering

This commit is contained in:
Kovid Goyal
2021-09-16 17:55:22 +05:30
parent aa9a991a85
commit eaeece8177
3 changed files with 17 additions and 8 deletions

View File

@@ -582,7 +582,7 @@ class Send(Handler):
af = self.manager.active_file
now = monotonic()
if af is None:
self.write('' * self.screen_size.width)
self.cmd.repeat('', self.screen_size.width)
else:
self.draw_progress_for_current_file(af, spinner_char=sc)
self.print()