Skip to content

Commit

Permalink
Word wrap text when switching between texts (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammaralmorsi authored Feb 25, 2024
1 parent c796b1f commit d548fee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mitype/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ def switch_text(self, win, value):
self.text = " ".join(self.tokens)
self.text_backup = self.text

self.text = word_wrap(self.text, self.window_width)

self.reset_test()
self.setup_print(win)
self.update_state(win)
Expand Down

0 comments on commit d548fee

Please sign in to comment.