Cursor position is wrong with special characters #815
Labels
bug
The playground isn't doing what it was intended to
help wanted
Not immediately going to be prioritized — ask for mentoring instructions!
upstream
Caused by a third-party component
Hello all,
I haven't been able to find this written up anywhere, so here's the issue. Special characters cause the position to offset, probably due to the Unicode helpers. See the example here:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b7401426cca8ddcc8a53cc025adb6b4c
Place your cursor somewhere after the fancy
a
and type, you'll be typing one letter behind what you expectThe text was updated successfully, but these errors were encountered: