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 input causes panic when dealing with special characters #235

Closed
pieterdd opened this issue Dec 30, 2023 · 1 comment
Closed

Text input causes panic when dealing with special characters #235

pieterdd opened this issue Dec 30, 2023 · 1 comment

Comments

@pieterdd
Copy link
Contributor

pieterdd commented Dec 30, 2023

Reproduction scenario:

  • Open the widget gallery example
  • Go to the 'Input' tab
  • Copy this to your clipboard:
tést
  • Paste it in the text input field
  • Move your cursor to the right of é
  • Press the left arrow key once
  • Enter any character
  • The app will panic:
thread 'main' panicked at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1\library\alloc\src\string.rs:1538:9:
assertion failed: self.is_char_boundary(idx)

There are several variations to this issue that are likely related, such as typing the character é (on certain keyboard layouts) followed by any character. This scenario also causes a panic. Additionally, when pressing Home and then moving the cursor to the right, you'll notice that the cursor doesn't move from the left to the right of é until you press twice.

Edit: fix at #236

@pieterdd
Copy link
Contributor Author

pieterdd commented Jan 1, 2024

#236 has been merged.

@pieterdd pieterdd closed this as completed Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant