Skip to content

Conversation

@rickyz
Copy link

@rickyz rickyz commented Oct 11, 2025

matchBracket returns an array containing start and end ranges for
brackets. Previously, findMatchingBracket (corresponding to vim's %
motion) would always jump to the end bracket. Fix it to jump to the
bracket whose range does not contain the current cursor position.

matchBracket returns an array containing start and end ranges for
brackets. Previously, findMatchingBracket (corresponding to vim's %
motion) would always jump to the end bracket. Fix it to jump to the
bracket whose range does not contain the current cursor position.
@rickyz rickyz changed the title Make findMatchingBracket to swap between start and end brackets. Make findMatchingBracket swap between start and end brackets. Oct 11, 2025
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

Successfully merging this pull request may close these issues.

1 participant