Skip to content

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

@mindolph

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.

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