Skip to content

Jumping to matching brace not as expected #3419

@Giessen

Description

@Giessen

Description of the problem

I bind C-] to JumpToMatchingBrace. Press C-] on one of paired braces, cursor go to after the paired brace instead of its accurate position.

Steps to reproduce

  1. In ~/.config/micro/bindings.json:
    "CtrlRightSq": "JumpToMatchingBrace",
  2. Open any txt file, type: {balabala}
  3. Move to the left {, press C-]
    Expected: watch the cursor move TO } (cursor block covering }). ( for cursor style being '|', actually before } )
    Actual: the cursor move after }

NOTE: same problem to jump from } to {.

Specifications

Version: 2.0.14-dev.245
Commit hash: 2259fd1
OS: WSL2
Terminal: Zsh

Related issue:

#3308

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