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 #2171

Open
byorgey opened this issue Oct 12, 2024 · 0 comments
Open
Labels
Z-Feature A new feature to be added to the game.

Comments

@byorgey
Copy link
Member

byorgey commented Oct 12, 2024

With #1953 , at the REPL we now automatically insert a matching close bracket when typing an open paren, square bracket, or curly brace. To go along with this, it would be nice if the REPL did not insert an extra close bracket when you type one but the cursor is already on top of one --- it should just move the cursor one space to the right instead.

For example, suppose you type open paren, x, +, y, close paren. Right now you would end up with

(x+y)|)

(where | indicates the cursor position) but I would like to end up with

(x+y)|

@byorgey byorgey added the Z-Feature A new feature to be added to the game. label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-Feature A new feature to be added to the game.
Projects
None yet
Development

No branches or pull requests

1 participant