Skip to content

Commit

Permalink
Flush after prompting.
Browse files Browse the repository at this point in the history
Without this, the prompt sometimes would not be shown at all (e.g. after
displaying the transaction in withdraw-cli, when waiting for
confirmation).
  • Loading branch information
porridge committed Nov 15, 2022
1 parent 9305eaf commit faa4beb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ledgerhelpers/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def print_line_ellipsized(fileobj, maxlen, text):
if len(text) > maxlen:
text = text[:maxlen]
fileobj.write(text)
fileobj.flush()
print()


Expand Down

0 comments on commit faa4beb

Please sign in to comment.