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

[BUG] - Issue when input chinese characters #5

Closed
tramhao opened this issue Jun 2, 2021 · 2 comments · Fixed by #6
Closed

[BUG] - Issue when input chinese characters #5

tramhao opened this issue Jun 2, 2021 · 2 comments · Fixed by #6
Assignees
Labels
bug Something isn't working

Comments

@tramhao
Copy link
Contributor

tramhao commented Jun 2, 2021

Description

Firstly thanks so much for your great work. I just started learning rust and tui is my interested area. When I run the demo code, I can input english without problem, but when input chinese, it can display all right, but the cursor is not moving correctly. I believe that is because one character in chinese is 2 letter wide.

Steps to reproduce

cargo run demo.rs

Expected behaviour

cursor moving to the end of the input string, not in the middle.

Environment

  • OS: linux
  • Architecture: x86_64
  • Rust version: 1.52.1
  • tui-realm version: 0.3.0

Additional information

Noting at this moment.

@tramhao tramhao added the bug Something isn't working label Jun 2, 2021
@veeso veeso linked a pull request Jun 2, 2021 that will close this issue
14 tasks
@veeso
Copy link
Owner

veeso commented Jun 2, 2021

You're welcome, thank you for reporting the issue!

I should have fixed this. Try with the new 0.3.1 version 😉

@veeso veeso closed this as completed Jun 2, 2021
@tramhao
Copy link
Contributor Author

tramhao commented Jun 3, 2021

Yes, I confirm that 0.3.1 fixed this issue. Thanks!

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.

2 participants