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
Description
Ref atom/atom#12013
See example:
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) {