Skip to content

Commit

Permalink
prevent text overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itincknell committed Dec 5, 2023
1 parent 38c6f45 commit 91ab4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ def print_word_list(items):
message += f"{entry_string}"

# ensure correct padding for all alphabets
while visible_len(message) < 148:
message += " "
while visible_len(message) > window_size:
message = message[:-1]

# print and reset message
print(message)
Expand Down

0 comments on commit 91ab4f6

Please sign in to comment.