https://bugs.kde.org/show_bug.cgi?id=463012
Bug ID: 463012 Summary: Folding Marker displayed even when folding region too small to fold Classification: Frameworks and Libraries Product: frameworks-ktexteditor Version: 5.101.0 Platform: Ubuntu OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: chris.m.ger...@gmail.com Target Milestone: --- SUMMARY During character based folding, fold start markers are identified and displayed for small one-line folding regions, however, they don't actually fold those regions. STEPS TO REPRODUCE An example in a c-style language void myFunction(){ } This will display a code fold marker (the small triangle icon on the left hand boarder) however, will not actually fold the function. This probably doesn't come up too much in c-style languages because you probably wouldn't have an empty function. However in python I would expect the following is quite common: def myFunction(): ''' Some documentation about my function ''' lines of function that do things ... The doc string in between the two sets of triple quotes " ''' " will display a code folding marker. In addition a code folding marker will be displayed for the "def myFunction ():" line also. However, the folding marker on the two line doc string will not actually fold that section. More over, trying to click the code fold marker for the doc string will fold the whole body of the function. This can cause a fair amount of confusion about what is going on as the user would likely expect the lower line of the doc string the " ''' " to fold up. Choosing not to fold small one-line regions like this isn't at all a problem. However, preferably in this case the code fold marker for the region wouldn't be displayed as that region can't actually be folded and a believe that is the desired behaviour. SOFTWARE/OS VERSIONS This behaviour was experienced on Ubuntu 22, with Kate version 23.03.70. However, I would expect similar behaviour on any platform. -- You are receiving this mail because: You are watching all bug changes.