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 - Undo places caret on wrong position after delete
Summary: Undo places caret on wrong position after delete
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 12:36 UTC by Roman Strobl
Modified: 2009-11-02 10:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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