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.
open file longer than two screens modify the line on top of file scroll down to make modified line non visible in editor view press Undo Previously: - IDE made undo and modified line visible Now: - only undo is done, but view is not scrolled up
It's a regression due to EditorCaret integration. I'm already working on a fix.
*** Bug 258577 has been marked as a duplicate of this bug. ***
http://hg.netbeans.org/jet-main/rev/9c4d02304d50
Integrated into 'main-silver', will be available in build *201604070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9c4d02304d50 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #258377 - [regression] Undo doesn't scroll editor to the caret position.
Mila, the bug is still reproducible. The simplest test case: create small Java file (all content see on the screen). Put cursor i.e. in copyright comment then without selecting words press Backspace button many times with delays. Move cursor to other line. Press Undo and cursor still remains on the line
I can also confirm the bug is still reproducible. While editing PHP file with more screens.
I have fixed the mentioned case but the problem is broader so I have entered issue 258798 for full resolution. http://hg.netbeans.org/jet-main/rev/84c8d40842be
Integrated into 'main-silver', will be available in build *201604140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/84c8d40842be User: Miloslav Metelka <mmetelka@netbeans.org> Log: #258377 - [regression] Undo doesn't scroll editor to the caret position - fixed additional cases.
(In reply to Miloslav Metelka from comment #7) > I have fixed the mentioned case but the problem is broader so I have entered > issue 258798 for full resolution. > > http://hg.netbeans.org/jet-main/rev/84c8d40842be Would comment/uncomment be fixed as part of issue 258798 as well?
*** Bug 258730 has been marked as a duplicate of this bug. ***
This bug was fixed, but now, in build 201604280002 it is again broken and the screen is not moved to the caret position after undo / redo.
The fix of issue #258798 should eliminate this problem too. I've tested both the typing which already uses the EditorUtilities.addCaretUndoableEdit() and the not yet patched Ctrl+/ to comment line and both scrolled ok.