Skip to content

Emojis in syntax highlighted code area cause other characters to not display#1291

Description

@mindolph

When entering a specific pattern of emoji characters in a syntax-highlighted CodeArea, the characters following the emoji characters cannot be displayed.

Code to reproduce the problem:

String text = "* 馃槀 hello";
codeArea.replaceText(text);
StyleSpansBuilder<Collection<String>> spansBuilder = new StyleSpansBuilder<>();
spansBuilder.add(List.of("md-list"), 2);
spansBuilder.add(Collections.emptyList(), 9);
codeArea.setStyleSpans(0, spansBuilder.create());

In the above example, the hello after the 馃槀 is not displayed at all, even when selected with cursor.

Image

But, what Interesting is, If the text is * 馃槀馃槀 hello with 2 emoji characters, the display works well.

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

    OS-MacIssues specific to the Mac platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions