https://bugs.kde.org/show_bug.cgi?id=405197

--- Comment #5 from RJVB <[email protected]> ---
Created attachment 121587
  --> https://bugs.kde.org/attachment.cgi?id=121587&action=edit
expected (left) vs. broken (right) folding

Well, somewhere between 5.52.0 and 5.60.0 the code folding code incurred a
regression which breaks folding of patch/diff files again, see the newly
attached screenshot (KDevelop, the left session running with the 5.52.0
frameworks and the right session with the 5.60.0 ones).

I think I understand why this happens: the folding now leaves the closing brace
visible in C/C++ and apparently it does so by not hiding the last line of the
scope-to-be-folded. I liked the old mode (and how you could delete an entire
block by folding it and then selecting and deleting 1 apparently line on the
screen) but I agree that this new mode is less ambiguous because the opening
and closing braces remain visible.

However, this is not appropriate for patch files, nor, for instance, for Python
files. Fortunately Python files are folded correctly, so this bug should be
easy to fix.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to