Bug 396019

Summary: Folding layer 1 not possible when layer 2 yet folded
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Lukas Sommer <sommerluk>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: cullmann, mauro.daino, nate, sommerluk
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 5.59.0
Attachments: bug.mss

Description Lukas Sommer 2018-06-30 12:15:00 UTC
Steps to reproduce:

1.) Open the attached file “bug.mss” in Kate.
2.) Click on code folding at line 1: The lines 2, 3, 4 are hidden as expected. The last line (line 5) with the closing “}” isn’t hidden.
3.) Click again on code folding at line 1: The lines 2, 3, 4 appear.
4.) Click on code folding at line 2: The lines 3, 4 are hidden. This time, the line with the closing “}” (line 4) is hidden.
5.) Now, lines 1, 2, 5 are visible. Click on code folding at line 1: Nothing happens.

Bugs:

A:
Current behaviour: The behaviour of step 2 and step 4 isn’t consistent: One time, the line with the closing “}” is hidden, another time not.
Expected behaviour: The behaviour is consistent in both situations.

B:
Current behaviour: In step 5, nothing happens.
Expected behaviour: Code folding as usual.
Comment 1 Nate Graham 2018-07-02 00:43:17 UTC
Missing the attachment?
Comment 2 Lukas Sommer 2018-07-02 12:27:14 UTC
Created attachment 113713 [details]
bug.mss

Sorry, I forgot the attachment. Here it comes now.
Comment 3 Lukas Sommer 2018-07-02 12:29:29 UTC
Attachment available now, removing “NEEDSINFO”.
Comment 4 Nate Graham 2018-07-03 20:35:02 UTC
Thanks, can reproduce with git master using your attachment.
Comment 5 Christoph Cullmann 2019-05-19 14:36:15 UTC
This seems for me to be fixed with the latest framework version.