Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Typing enter before a closing bracket results in wrong indentation on new line #381

Open
@adamreisnz

Description

@adamreisnz

Ref atom/atom#12013
See example:

ss

When you press enter with the cursor positioned just before the closing bracket, the indentation of the new line is one unit off.

This is on Atom 1.10.0-dev-e5a3c9e, OS X 10.11.5.

The simplest example with a closing bracket will work to reproduce this:

    //)
    if (this.date) {

Place cursor between the comment slashes and the closing bracket and hit enter. It will move the closing bracket to this position:

    //
  )
    if (this.date) {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions