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 269725

Summary: When tab is cloned, undoing changes moves cursor in both
Product: editor Reporter: eam74
Component: Actions/Menu/ToolbarAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: eam74
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10   
Issue Type: DEFECT Exception Reporter:

Description eam74 2017-02-02 16:46:38 UTC
This is probably a minor bug but really disruptive. I'm trying to refactor a big file, so I cloned the view and have it open in two tabs. I have the file scrolled to a different location in each window (e.g. the old function, my new function).

To reproduce:

1. Clone a document view (call them View A and View B)
2. Place cursor in different locations in each view
3. Make a change in View A, then undo
4. Observe position of cursor in View A and View B

Expected: Cursor in View A moved to where the change happened. The cursor in View B is unaffected.

Actual: Both cursors have moved. If the document was large enough to scroll, the scroll view also jumps in View B such that the cursor is visible.