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 186714

Summary: Drag & undo selection creates copy
Product: editor Reporter: ebeb
Component: Actions/Menu/ToolbarAssignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description ebeb 2010-05-26 09:24:34 UTC
If you select text in the editor, drag the text by mouse to another line and drop, then undo, the text appears twice.

Steps to reproduce:
- Open a (Java) source file
- Select some text in a line (let's call it line A)
- Click on the selection and drag it to another line  (line B)
- Now the selected text is cut from line A and pasted into line B
- Now press CTRL-Z to undo the last action

As a result, the selected text appears twice in line A and in line B.

I was able to reproduce it on different machines, all running 6.8.
Comment 1 Vitezslav Stejskal 2010-05-26 13:44:56 UTC

*** This bug has been marked as a duplicate of bug 60560 ***