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

Do not insert nested pair if we are using existng sexp's opener as prefix. #741

Closed
Fuco1 opened this issue Apr 29, 2017 · 0 comments
Closed

Comments

@Fuco1
Copy link
Owner

Fuco1 commented Apr 29, 2017

Expected behavior

Nothing should happen and the rest of the pair should probably get removed OR the closing pair should transform to match the opener instead of the closer being inserted right there.

Actual behavior

The closing delimiter is inserted right after point which makes the buffer imbalanced.

Steps to reproduce the problem

Try a tuareg-mode buffer with content (foo) and local pair

(sp-with-modes '(tuareg-mode) (sp-local-pair "(*" "*)" ))

Place the point before foo and hit *. The buffer breaks.

@Fuco1 Fuco1 added this to the 1.12 milestone Apr 29, 2017
@Fuco1 Fuco1 closed this as completed in f5ffbc7 Jul 4, 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

1 participant