Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text not wrapping properly in terminal when switching text #157

Closed
ammaralmorsi opened this issue Feb 6, 2024 · 1 comment · Fixed by #158
Closed

Text not wrapping properly in terminal when switching text #157

ammaralmorsi opened this issue Feb 6, 2024 · 1 comment · Fixed by #158
Assignees
Labels
bug Something isn't working

Comments

@ammaralmorsi
Copy link
Contributor

Subject of the issue

Text not wrapping properly in terminal when switching text

Your environment

  • operating-system: ManjaroLinux-23.1.3
  • version of Mitype: Mitype version 0.2.4
  • version of Python: 3.11.5
  • which terminal and it's version if applicable: xterm-256color

Steps to reproduce

  1. Launch mitype
  2. Use the arrow keys to switch to a new text.
  3. Observe how the text wraps within the terminal window

Expected behavior

When switching text, the new text should wrap properly within the terminal window, ensuring that words remain intact and are not split across lines.

Actual behavior

The new text does not wrap properly, leading to words being split across lines in the terminal window.
image

Your proposed fix (if any)

I believe this issue could be solved by calling word_wrap on text switching

@ammaralmorsi ammaralmorsi added the bug Something isn't working label Feb 6, 2024
Copy link

welcome bot commented Feb 6, 2024

Thank you for opening your first issue in this project!
A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant