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

Paredit strict backspace in the leftmost symbol/keyword/thing inserts a space instead #1771

Closed
PEZ opened this issue Jun 11, 2022 · 4 comments
Labels
bug Something isn't working editing paredit Paredit and structural editing regression Regression error

Comments

@PEZ
Copy link
Collaborator

PEZ commented Jun 11, 2022

Briefly, the problem is that when you press backspace in this form:

(if• :|foo)

It inserts a space between : and f, instead of just deleting the :. This is because the onlyWhitespaceLeftOfCursor that was being used to guard the new backspace on whitespace behavior function didn't verify that you were not deeply inside the current token (as opposed to just touching the left edge).

@PEZ PEZ added bug Something isn't working paredit Paredit and structural editing regression Regression error editing labels Jun 11, 2022
@PEZ
Copy link
Collaborator Author

PEZ commented Jun 11, 2022

This is being addressed by @isaksky , here:

@kees-
Copy link

kees- commented Jun 24, 2022

Hi, I'll open another issue if preferred but I'm finding this behavior elsewhere, when trying to use ) to skip past a nested matched closing paren in strict mode.

Skipping over a single matched closing paren with ) works fine.
single

Spaces are added when pressing ) to skip a paren that is nested. Doing so with the top-level paren removes all the spaces in some instances.
nested

Same goes for all collection syntaxes () [] {} #{}

@bpringe
Copy link
Member

bpringe commented Jun 26, 2022

@kees- Thanks for reporting this. Please create a new issue.

@kees-
Copy link

kees- commented Jun 27, 2022

Sure thing. #1787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editing paredit Paredit and structural editing regression Regression error
Projects
None yet
Development

No branches or pull requests

3 participants