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

'else' statement disappeared when the 'if' statement is fold in #227

@jerrykal

Description

@jerrykal

Prerequisites

Description

else statement disappeared when the if statement is fold in

Steps to Reproduce

  1. Open a C/C++ file
  2. Add these code into the file:
int main() {
  if (/* expression */) {
    // some code
  } else {
    // some code
  }
}
  1. Fold the if statement and you'll see the problem

Expected behavior:

screen shot 2017-04-11 at 16 08 56

Actual behavior:

screen shot 2017-04-11 at 16 09 55

Versions

Atom: 1.16.0-beta0
OS: macOS sierra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions