Bug 396019 - Folding layer 1 not possible when layer 2 yet folded
Summary: Folding layer 1 not possible when layer 2 yet folded
Status: RESOLVED FIXED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other All
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 12:15 UTC by Lukas Sommer
Modified: 2019-05-19 14:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.59.0


Attachments
bug.mss (56 bytes, text/plain)
2018-07-02 12:27 UTC, Lukas Sommer
Details

Note You need to log in before you can comment on or make changes to this bug.
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.