Skip to content

Incorrect collapsing of functions (multiple languages) #4560

@alex085

Description

@alex085

STR:

  1. Create new doc
  2. Select "C" from "Language" menu
  3. Type the code
void func1()
{
	//a {
	//}
	return;
}

"return" is not necessary. It is placed here to make the bug more visible.
4. Click menu "View->Fold All"

I expect folding like on picture 1.
pic1

Actually I get the case from picture 2.
pic2

Metadata

Metadata

Assignees

Labels

acceptedverifiedIssues verified to be valid and reproducible, PRs that have been tested thoroughly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions