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

duplicate closing brace after \t #669

Closed
unhammer opened this issue Nov 3, 2016 · 1 comment
Closed

duplicate closing brace after \t #669

unhammer opened this issue Nov 3, 2016 · 1 comment

Comments

@unhammer
Copy link

unhammer commented Nov 3, 2016

After writing \t and then [, the closing ] is inserted. Then, when typing the ] to skip over the closing brace, a second ] is inserted. This doesn't happen if there's no \t before. Newlines after the \t don't help, and it goes for other parens types too. Extra \t's do not cancel the effect.

See https://asciinema.org/a/1uzd1icbenzjtrif1d55w0lty for demonstration running under emacs -Q.

asciicast

@Fuco1
Copy link
Owner

Fuco1 commented Nov 3, 2016

Thanks, this looks annoying, I'll look into it.

@Fuco1 Fuco1 modified the milestones: 1.9, 1.10 Nov 3, 2016
@Fuco1 Fuco1 closed this as completed in ce2f46b Nov 13, 2016
Fuco1 added a commit that referenced this issue Nov 13, 2016
jojojames pushed a commit to jojojames/smartparens that referenced this issue Mar 31, 2017
The issue was that by using sp--search-backward-regexp we allowed checks
which did not end on point and so could pick up any escaped character
previously inserted in the buffer.
jojojames pushed a commit to jojojames/smartparens that referenced this issue Mar 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants