Skip to content

The cursor-positioned character inherits the previous highlight color. #211

Open

Description

@nines75

In the image below, the original color of the character at the cursor position is black, but it actually appears in red.
Is this the intended behavior?

Image

Activity

  1. nines75 commented on Mar 26, 2025

    @nines75
    ContributorAuthor

    Bracket matching also highlights the character before the cursor.

    Image

  2. nightwing commented on Mar 26, 2025

    @nightwing
    Collaborator

    The cursor position is fixed with 4b9e1a0, for bracket matching unfortuately there does not seem to be any good way to intercept https://github.com/codemirror/matchbrackets/blob/24c9108ea5aef7180ace4d07c857cf5aa1c8a783/src/matchbrackets.ts#L65 to change the character for which codemirror matches the bracket

  3. nines75 commented on Mar 26, 2025

    @nines75
    ContributorAuthor

    Thank you for the fix.
    Should I create a new issue in this repository for bracket matching?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions