Skip to content

In js2-mode, killing a line right before an expression breaks next line's indentation #696

@davazp

Description

@davazp

The probem happens with js2-version 1.8.5 and smarparents from melpa: smartparens-20170104.410. I tried with Emacs 25.1 and no extra configuration besides js2-mode and smartparens.

To reproduce it:

function f () {
  <|>
  return 42;  // 2 spaces of indentation
}

After C-k, I get:

function f () {
<|> return 42;  // 1 space of indentation, point at the beginning of the line
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions