Skip to content
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

Bracket jumping failure #762

Closed
philiprbrenan opened this issue Nov 17, 2015 · 1 comment
Closed

Bracket jumping failure #762

philiprbrenan opened this issue Nov 17, 2015 · 1 comment

Comments

@philiprbrenan
Copy link

In a Java file with the cursor positioned as shown:

(1) Bracket jumping with ctrl-B works:

matchingbrackets1

(2) Bracket jumping with ctrl-B does not work:

matchingbrackets2

(3) Bracket jumping with ctrl-B works again:

matchingbrackets3

@b4n
Copy link
Member

b4n commented Nov 18, 2015

Although it's already closed, the reason here is that jumping to the matching brace prefers the brace on the left that the one on the right. As it can jump over <> pairs, on your 2nd example it tries to match the > on the left of the cursor rather than the { on its right. If you had a matching < you'd see the cursor jumping to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants