Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 128365

Summary: [projection] Code folding: cut and paste unfolds following folded block
Product: [Eclipse Project] Platform Reporter: Daniel Gattermann <daniel.gattermann>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: Brian.Miller, daniel_megert, lysathor
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Daniel Gattermann CLA 2006-02-17 03:44:47 EST
Given the following "code" with the "Folded comment" block folded:

// a
// b
//
//
/*
 * Folded comment
 */

Marking the two lines of the "a" and "b" comments and cutting them unfolds the formerly folded "Folded comment".
It doesn't matter wether the blank comments are there or not and it also happens with folded code, not only comments.

Additionally cutting a folded block doesn't cut the contained text but unfolds the block.
Cut and paste with code folding enabled needs to be fixed.

Tested with builds I20051215-1506 (3.2M4, platform + JDT) and M20060118-1600 (3.1.2, SDK).
Comment 1 Dani Megert CLA 2009-11-03 03:28:12 EST
*** Bug 294025 has been marked as a duplicate of this bug. ***
Comment 2 Dani Megert CLA 2010-02-23 10:52:44 EST

*** This bug has been marked as a duplicate of bug 178203 ***