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.
select some code delete it do undo NetBeans doesn't return selection on undo
I know it's off-topic from user's point of view but with Swing's MVC this is not straightforward to implement this request since UndoManager is per-Document which is correct but caret position/selection is a view-related info. If there would be more views per one document each of them can have a different selection. A solution would be to have an Undo/Redo API that would allow to associate caret-related information (with a weak-ref to the text component) to the undoable item of the modification.
*** Bug 159016 has been marked as a duplicate of this bug. ***
*** Bug 187495 has been marked as a duplicate of this bug. ***
Is there any chance that this enhancement ever happens? I would love for it to be a thing
Mila, are we able to implement this now that we have EditorCaretUndo?
I've tested it in a recent dev build and selection restoration works both after deletion by backspace and delete keys.
That's awesome. Any time table on when this could be released?
(In reply to dalton1130 from comment #7) > That's awesome. Any time table on when this could be released? The nightly build is available from the download page[1]. The NetBeans 8.2 wiki[2] shows the latest info on the release. [1] - http://bits.netbeans.org/download/trunk/nightly/latest/ [2] - http://wiki.netbeans.org/NetBeans_82