Progress text of the blame module was being outputted wrong.
Some regression occurred in a previous commit as the progress text never was purged out of the output.
This commit is contained in:
parent
cf0f40cc4d
commit
e263982806
|
@ -117,7 +117,7 @@ class Blame:
|
|||
def output_progress(pos, length):
|
||||
if sys.stdout.isatty() and format.is_interactive_format():
|
||||
terminal.clear_row()
|
||||
print("\b" + _(PROGRESS_TEXT).format(100 * pos / length), end="")
|
||||
print(_(PROGRESS_TEXT).format(100 * pos / length), end="")
|
||||
sys.stdout.flush()
|
||||
|
||||
@staticmethod
|
||||
|
@ -165,6 +165,7 @@ class BlameOutput(Outputable):
|
|||
def __init__(self, hard):
|
||||
self.hard = hard
|
||||
self.changes = changes.get(hard)
|
||||
print("")
|
||||
get(self.hard, self.changes)
|
||||
Outputable.__init__(self)
|
||||
|
||||
|
@ -222,9 +223,7 @@ class BlameOutput(Outputable):
|
|||
print(blame_xml)
|
||||
|
||||
def output_text(self):
|
||||
print("")
|
||||
|
||||
if self.hard and sys.stdout.isatty():
|
||||
if sys.stdout.isatty() and format.is_interactive_format():
|
||||
terminal.clear_row()
|
||||
|
||||
print(textwrap.fill(_(BLAME_INFO_TEXT) + ":", width=terminal.get_size()[0]) + "\n")
|
||||
|
|
Loading…
Reference in New Issue