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 lispy-backward-kill-word delimiter-balancing #622

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paulapatience
Copy link

  • lispy.el (lispy-backward-kill-word): When looking back at ") ", we
    would take the first if's then branch because the char before is
    whitespace. However, this branch would call backward-kill-word which
    doesn't skip over delimiters. Prevent this situation by taking the then
    branch only if we're looking back at a word or symbol constituent
    followed by whitespace, in which case backward-kill-word behaves
    correctly. If we're not looking back at such a pattern, we end up in the
    else branch, which does skip over delimiters.

Fixes #584

* lispy.el (lispy-backward-kill-word): When looking back at ") ", we
would take the first if's then branch because the char before is
whitespace. However, this branch would call backward-kill-word which
doesn't skip over delimiters. Prevent this situation by taking the then
branch only if we're looking back at a word or symbol constituent
followed by whitespace, in which case backward-kill-word behaves
correctly. If we're not looking back at such a pattern, we end up in the
else branch, which does skip over delimiters.

Fixes abo-abo#584
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.

lispy-backward-kill-word does not balance parens, quotes, brackets, or braces
1 participant