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

Bug 83602

Summary: [typing] editor: undo newline removes last typed line too
Product: [Eclipse Project] Platform Reporter: arne anka <eclipse-bugs>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description arne anka CLA 2005-01-25 07:50:22 EST
type a new line of text, insert linebreak by pressing enter and the ctrl+z ... the newly line of text is gone. i 
expect ctrl+z only to undo the linebreak not the whole newtyped line.
this is especially annoying in conjunction with autocompletion: sometimes, don't understand why, after 
the list of suggestions pops up the whole editor moves a few pixels down, just the moment i pressed 
enter to choose. thus i get an incomplete stub and a linebreak ... undoing the linebreak results in the 
above.
see this on solaris 8 with kde2 and linux 2.6 with kde3 -- so i assume it's a problem on all platforms.
if it matters: happens when coding java.

if this is the wrong category: the interface is somewhat unclear and confusing -- im not able to determine 
what all this categories mean.
Comment 1 Dani Megert CLA 2005-01-25 10:19:38 EST
This is as designed. Undo is not line based i.e. if you type some text with
several newlines it will remove all together.

*** This bug has been marked as a duplicate of 49553 ***
Comment 2 arne anka CLA 2005-01-26 07:23:21 EST
of course is undo not linebased and i don't expect it to.
but undo should be _action_ based! typing text and pressing enter are two different actions which 
should be undoable one by one.
i'll watch 49553.