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 244355 - Block selection drag&drop fails, removes lines and breaks code
Summary: Block selection drag&drop fails, removes lines and breaks code
Status: RESOLVED DUPLICATE of bug 202570
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-07 14:28 UTC by Zom-B
Modified: 2014-05-08 06:35 UTC (History)
0 users

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 Zom-B 2014-05-07 14:28:44 UTC
* Turn on block selection
* Select from cursor position 2:19 (,) to 4:29 (})
* Drag the selection to cursor position 2:9

public static final int[] COLORS = {
0xFF0000, 0x00FF00, 0x0000FF, // x
0xFF8080, 0x80FF80, 0x8080FF, // Bright x
0x800000, 0x008000, 0x000080};// Dark x

Expected effect:

public static final int[] COLORS = {
0xFF0000, 0x0000FF, 0x00FF00, // x
0xFF8080, 0x8080FF, 0x80FF80, // Bright x
0x800000, 0x000080, 0x008000};// Dark x

Actual effect:

public static final int[] COLORS = {
0xFF0000, 0x0000FF, // x, 0x00FF00};// Dark x
Comment 1 Jiri Prox 2014-05-07 14:56:56 UTC

*** This bug has been marked as a duplicate of bug 202570 ***
Comment 2 Zom-B 2014-05-08 06:35:56 UTC
If it was a duplicate, where does the original describe the loss of lines? If I understand it correctly, the other bug says it works like regular selection, but that doesn't remove anything, just moves it around irregularly, whereas here the selected and some of the surroundings disappear.