Skip to content

puni-kill-line still misbehaving with regard to indentation #77

@astratagem

Description

@astratagem

I originally added this as a comment on #64 but I figure that issue has been closed for long enough that it's worth a new thread.


I'm running into the behavior described in #64 on the latest commit (f430f5b). #68 looks similar, but the before/after examples in this issue (#64) are definitely the same as what I'm seeing. Why would the issue have come back?

If it matters, I have seen this behavior regardless of the value of kill-whole-line.

Here's another example, this time in nix-ts-mode, though I see it in quite a few other modes (I think also php-ts-mode):

Original, where | represents point:

{
  services.kanshi.settings = [
    {
      output.criteria = "eDP-1";
      |output.scale = 2.0;
    }
  ];
}

After first puni-kill-line invocation, with | as point:

{
  services.kanshi.settings = [
    {
      output.criteria = "eDP-1";
      |
    }
  ];
}

After second puni-kill-line invocation:

{
  services.kanshi.settings = [
    {
      output.criteria = "eDP-1";
      |}
  ];
}

And here's an even more minimal example with the intermediary step elided:

[
  {}
  |
]
[
  {}
  |]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions