This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57185

Summary: Undo places caret on wrong position after delete
Product: editor Reporter: Roman Strobl <rstrobl>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Roman Strobl 2005-03-30 12:36:10 UTC
[NetBeans 200503291800; JDS R3; JDK 1.5.0_03]

1. Try to write some text, e.g. System.out.println("test");
2. Delete the text from left by pressing the Delete key.
3. Try pressing Undo till the whole line re-appears.

The problem is that caret is moved one character to the right than it should be.
At the end it is located at:

S|ystem.out.println("test");
Comment 1 Martin Roskanin 2005-03-30 12:52:15 UTC
Problem is also in NB3.6 and NB4.0 It is not connected with recent
openide/editor changes and issue #56963
IMHO, this is not P3 problem, downgrading.
Comment 2 Miloslav Metelka 2006-03-01 13:08:35 UTC
Not easy to fix - there would have to be an undo "hint" for the caret. Will
possibly solve with the new Editor API. Marking for future.
Comment 3 Max Sauer 2008-11-28 09:24:58 UTC
Will be resolved LATER.
Comment 4 Quality Engineering 2009-11-02 10:57:55 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX