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

Don't insert extra close bracket when the cursor is already on top of one #2215

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented Nov 25, 2024

Closes #2171.

When the cursor is on top of a close bracket (either ), ], or }) and the user types the same character, simply move the cursor right one position instead of inserting a new close bracket character. This works especially well in conjunction with #1953.

@byorgey byorgey requested review from noahyor, xsebek and kostmo November 28, 2024 01:05
@byorgey byorgey added the merge me Trigger the merge process of the Pull request. label Nov 28, 2024
@mergify mergify bot merged commit c7678f3 into main Nov 28, 2024
12 checks passed
@mergify mergify bot deleted the feature/close-bracket branch November 28, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't insert extra close bracket when the cursor is already on top of one
2 participants