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 - When tab is cloned, undoing changes moves cursor in both
Summary: When tab is cloned, undoing changes moves cursor in both
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 8.2
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-02 16:46 UTC by eam74
Modified: 2017-02-02 20:05 UTC (History)
1 user (show)

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 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.