Skip to content

Line editing for chat messages breaks with the character "裔" #398

Description

@dstu

When entering a chat message (in INSERT mode), pasting a character like (a 3-byte character in UTF-8: https://codepoints.net/U+88d4) causes the text insertion point to be drawn incorrectly. When appending text, it is drawn over characters instead of at the end of the line. I suspect that this is the result of computing an offset incorrectly.

For correct behavior, see this image, which shows where the text insertion point is located after I type asdf asdf:
Image

For incorrect behavior, see this image, which shows where the text insertion point is located after I type asdf裔asdf:
Image

After typing this character and exiting from INSERT mode, it is no longer possible to position the insertion point at the end of the text that has been entered. Pressing [END] and then a (to append text to the end of the line) allows text to be appended properly, but the text insertion point is located in a confusing position (which makes it look like text is going to be inserted between characters, when it is actually going to be appended).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    modalkitIssues that require an accompanying modalkit change

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions