-
-
Notifications
You must be signed in to change notification settings - Fork 198
sp-kill-hybrid-sexp doesn't always remove empty lines #974
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
Comments
The underlying problem appears to be that in this case: foo() {
|
x
}
foo() {
|
}
Which is the correct behaviour? The comment for
So does that mean that the second case is incorrect, since a region with |
Yes that seems not to be correct. I think there might be some special behaviour in case the containing expression is completely empty. |
This bug still exist in some form right now. foo() {
...
|
} #975 will fix this case |
sp-kill-hybrid-sexp
doesn't always remove empty lines if there are only empty lines between point at the close paren.E.g.: (point is
|
)In this state,
sp-kill-hybrid-sexp
has no effect at all. Whereas it should produce:To illustrate this point, if we started with:
then
sp-kill-hybrid-sexp
works as expected and produces:Somehow, the lack of
something();
before the close paren preventssp-kill-hybrid-sexp
from working!Environment & version information
smartparens
version: 1.11.0The text was updated successfully, but these errors were encountered: