Closed OkieOth closed 2 months ago
If I am running the user_input example, then the application paniced when I am using e.g. 'ä' or other UTF-8 characters as input.
Run cargo run --example=user_input --features=crossterm Enter in the input field multiple times an 'ä' (or similar)
cargo run --example=user_input --features=crossterm
Application should somehow not crash
The old example doesn't handle the use vector of String by chars. Instead the operations were based on bytes.
I will provide a PR that fixes that issue.
PR is there ... be kind is my first one x-D
Description
If I am running the user_input example, then the application paniced when I am using e.g. 'ä' or other UTF-8 characters as input.
To Reproduce
Run
cargo run --example=user_input --features=crossterm
Enter in the input field multiple times an 'ä' (or similar)Expected behavior
Application should somehow not crash
Environment
Solution
The old example doesn't handle the use vector of String by chars. Instead the operations were based on bytes.
I will provide a PR that fixes that issue.