Skip to content

Backtick is applied incorrectly while composing Korean character in macOS #1709

@asitisdev

Description

@asitisdev

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

When closing a backtick while composing Korean character, the inline code highlight is applied to the wrong range.

When I type:

this is  `한글`

The inline code highlight is applied like this:

this is ` 한글`

Expected Behavior

The inline code should be applied like this:

this is  `한글`

Steps To Reproduce

  1. Type space and backtick to start inline code.
  2. Type Korean text.
  3. While the character is still under composition, (the Korean character should still be underlined and not finalized)
  4. Close the backtick to end inline code.
  5. Observe that the inline code highlight is applied to the wrong range.

Environment

- OS: macOS 15.6.1
- Version: 0.50.3

Anything else?

Anytype.backtick.bug.with.Korean.mov

I also checked on Windows, but this issue does not occur on Windows environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions