Bug 398840 - Python code folding broken as of 17.12.3
Summary: Python code folding broken as of 17.12.3
Status: RESOLVED DUPLICATE of bug 398671
Alias: None
Product: kate
Classification: Applications
Component: folding (show other bugs)
Version: 17.12.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-19 15:54 UTC by Alan Prescott
Modified: 2018-09-19 21:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Prescott 2018-09-19 15:54:57 UTC
This appears to be a problem where opening and closing braces are on the same line, the folding algorithm then marks this as foldable when it's obviously not.
e.g.
[code]
my_empty_list = []
[\code]
is shown as foldable.

A problem is that this also overrides the folding for class and def statements so that they are not foldable as a block

openSUSE Leap 15.0, kate 17.12.3
Comment 1 Christoph Feck 2018-09-19 21:41:47 UTC
*** This bug has been marked as a duplicate of bug 398671 ***