Skip to content

sp-kill-hybrid-sexp doesn't always remove empty lines #974

@edam

Description

@edam

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 |)

foo() {
    |

}

In this state, sp-kill-hybrid-sexp has no effect at all. Whereas it should produce:

foo() {
    |
}

To illustrate this point, if we started with:

foo() {
    |

    something();
}

then sp-kill-hybrid-sexp works as expected and produces:

foo() {
    |
    something();
}

Somehow, the lack of something(); before the close paren prevents sp-kill-hybrid-sexp from working!

Environment & version information

  • smartparens version: 1.11.0
  • Active major-mode: c-mode (or js-mode)
  • Emacs version: GNU Emacs 26.1 (build 2, x86_64pc-linux-gnu, GTK+ Version 3.24.4) of 2019-02-03, modified by Debian
  • OS: Debian "buster" x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions