https://bugs.kde.org/show_bug.cgi?id=436480
Bug ID: 436480 Summary: Deleting folded lines does not remove code folding marker Product: frameworks-ktexteditor Version: 5.81.0 Platform: Other OS: Other Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: kishor...@gmail.com Target Milestone: --- Created attachment 138072 --> https://bugs.kde.org/attachment.cgi?id=138072&action=edit Screenshot showing observed result after step 4 SUMMARY When you delete a set of folded lines, the code folding marker is wrongly shown even if the entire folded environment is removed. STEPS TO REPRODUCE 1. Create a file with a foldable environment (e.g., the following file, blah.py; numbers like L1, L2, ... at the beginning denote line numbers). You will have to save the file. ``` L1 | print("pre-blah") L2 | L3 | def f(x): L4 | a = 1+2 L5 | b = 2+3 L6 | return a+b L7 | L8 | print("blah") ``` 2. Fold the definition of f(x) by clicking on the code folding arrow that appears in L3. 3. Select lines L2-L7 with the mouse 4. Press Ctrl+K (to delete lines) OBSERVED RESULTS A 'folded code' marker is shown on the line containing the second print statement (see attached screenshot). Clicking on the code folding marker makes it disappear. EXPECTED RESULTS If a folded block of code is deleted, the code folding marker should also be removed immediately. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.81.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION I was able to reproduce this in both Kile and Kate, so I am reporting this under ktexteditor. -- You are receiving this mail because: You are watching all bug changes.