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

Del key, after emptying a comment line, then imbalances the next form #2686

Open
pbwolf opened this issue Dec 29, 2024 · 1 comment
Open

Comments

@pbwolf
Copy link

pbwolf commented Dec 29, 2024

Starting with the document-and-selection

|;•(foo)

(where • signifies a newline), 3 invocations of deleteForward produce the following series of documents

|•(foo)
|(foo)
|foo)

The last one, the form's open-paren having been deleted, is unexpected. I expected

(|foo)
@pbwolf
Copy link
Author

pbwolf commented Dec 30, 2024

The "calva:cursorInComment" context remains in effect even after the Delete key removes the last vestiges of a comment, and therefore(?) the niceties of paredit do not apply to whatever happens next.

@pbwolf pbwolf changed the title Paredit deleteForward, after emptying a comment line, can ruin the next form Del key, after emptying a comment line, can ruin the next form Jan 1, 2025
@pbwolf pbwolf changed the title Del key, after emptying a comment line, can ruin the next form Del key, after emptying a comment line, then imbalances the next form Jan 1, 2025
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

No branches or pull requests

1 participant