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

fix: the paredit-splice should not backward 1 form if current point already at open-char #1709

Closed
wants to merge 1 commit into from

Conversation

sakurawald
Copy link
Contributor

This pr fixes the matched level of open-char and closed-char.
To fix cases like: #1612

Before this pr: the paredit-splice treat string between open-char and closed-char and closed-char as the same form, but treat the open-char as the (form-offset (current-point) -1).

After this pr: the paredit-splice treat open-char, string between open-char and closed-char and closed-char as the same form.


For this test-case:
image

Before this pr:
image

After this pr:
image

@sakurawald sakurawald closed this Dec 12, 2024
@sakurawald
Copy link
Contributor Author

Closed as this is treated as a feature.

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.

1 participant