Skip to content

Cursor position is wrong with special characters #815

Open
@tgross35

Description

@tgross35

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 expect

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe playground isn't doing what it was intended tohelp wantedNot immediately going to be prioritized — ask for mentoring instructions!upstreamCaused by a third-party component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions