Bug 26398 - Undo uncomment garbles text
Summary: Undo uncomment garbles text
Status: RESOLVED DUPLICATE of bug 25700
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-14 14:22 EST by John Arthorne CLA
Modified: 2002-11-15 04:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2002-11-14 14:22:50 EST
Build 20021114

1) Start with the following JCU:

public abstract class A {
	public void run() {
		for (int i = 0; i < 5; i++) {
			doit();
		}
	}
	public abstract void doit();
}
2) Select the lines that form the body of the class (run and doit methods)
3) Hit Ctrl+/ key to comment lines4) Hit Ctrl+\ to uncomment
5) Hit Ctrl+z to undo, the result is:

public abstract class A {
	//	public void run() {
		//		for (int i = 0; i < 5; i++) {
			//			doit();
			//		}
		//	}
//
public abstract void doit();
}

6) Hit Ctrl+z to undo again, the result is:

public abstract class A {
/
public void run() {
	//		for (int i = 0; i < 5; i++)
			//			doi);
	//	
		//	}
//
public abstract void doit();
}
Comment 1 Kai-Uwe Maetzel CLA 2002-11-15 04:50:21 EST

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