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

Bug 185777

Summary: [projection] Code corruption when deleting parts of folded text with advanced delete commands
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2007-05-07 10:56:25 EDT
I20070503-1400

Follow-up to bug 185760 (same for 'Delete Next/Previous Word' and 'Delete to End of Line').

1. enable folding (and fold imports)
2. paste this:
------------- %< --------
import java.text.DateFormat;
import java.util.HashMap;
import java.util.List;

class Bug {}
------------- %< --------
3. select "po" from "import"
4. Ctrl+Delete or Ctrl+Backspace or Ctrl+Shift+Delete
==> import folding goes away and text becomes:
imrt java.text.DateFormat;

class Bug {}

==> the editor is completely confused from now.
Comment 1 Dani Megert CLA 2007-05-07 11:31:11 EDT

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