atom / language-coffee-script

CoffeeScript support in Atom
Other
59 stars 56 forks source link

Code folding does not work properly for the last element in a group #168

Open brennenberkley opened 6 years ago

brennenberkley commented 6 years ago

Prerequisites

Description

Folding all code and then unfolding a section reveals that the last element in that section isn't folder like the rest of the elements are

Steps to Reproduce

  1. Copy the following into atom:
    people:
    Bill:
    age: 25
    weight: 140
    Kim:
    age: 22
    weight: 125
  2. Go to Edit->Folding->Fold All
  3. Unfold people by clicking the 3 dots next to it

Expected behavior:

people:
  Bill: ...
  Kim: ...

Actual behavior:

people:
  Bill: ...
  Kim:
    age: 22
    weight: 125

Reproduces how often: 100%

Versions

Atom : 1.28.2 Electron: 2.0.5 Chrome : 61.0.3163.100 Node : 8.9.3 Mac OS High Sierra (10.13.6)

Aerijo commented 5 years ago

@brennenberkley I see this issue is old, but do you know if this still reproduces? It folded as expected when I tried just now.