-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jumping to matching brace not as expected #3419
Comments
It works as expected: If you start from outside the brackets it jumps outside the corresponding bracket, and if you start from inside it jumps inside the corresponding bracket.
|
Please see #2876 (comment). TL;DR this behavior was originally introduced in #1054 as a separate option (disabled by default) and later was "merged" into the default behavior. |
Thank you very much for the info. Is there an easy fix or settings so I can disable the "closing brace to left/right of cursor"? IMHO, this causes more mental burden than otherwise and leads to hard to follow/predict results. One e.g. stated in #2876: (xyz)(xyz) I do a test as following:
|
There is none, but we can probably implement it. |
You can try with PR #3432 (with |
Setting |
I can confirm it works great. Thanks for the contribution. |
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
"CtrlRightSq": "JumpToMatchingBrace",
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
The text was updated successfully, but these errors were encountered: