Skip to content

Make findMatchingBracket swap between start and end brackets. - #148

Open
rickyz wants to merge 1 commit into
brijeshb42:masterfrom
rickyz:master
Open

Make findMatchingBracket swap between start and end brackets.#148
rickyz wants to merge 1 commit into
brijeshb42:masterfrom
rickyz:master

Conversation

@rickyz

@rickyz rickyz commented Oct 11, 2025

Copy link
Copy Markdown

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
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.
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