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

plugins: autoclose: Do autoclose in case the next char is a whitespace #3134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoeKar
Copy link
Collaborator

@JoeKar JoeKar commented Feb 4, 2024

For me the current behavior is a bit unexpected too in case the brace is opened before an non white space character and automatically closed.
So I'd like to suggest this as the new behavior.
Yes, a new option could be introduced instead to control that, but then we end up in too much options.

closes #3133

@JoeKar
Copy link
Collaborator Author

JoeKar commented Feb 5, 2024

Ok, this significantly changes the behavior, which before would also create a new ()) brace pair before the closing one and previously allowed []). It should be discussed, if we would allow more corner cases.

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.

Add option to disable autoclose when cursor is not before whitespace
1 participant