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 267792

Summary: Drag & drop multilines selection
Product: editor Reporter: amobilia
Component: Actions/Menu/ToolbarAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description amobilia 2016-08-31 02:09:59 UTC
Code example :
-----
	<head>
		<title>TODO supply a title</title>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
	</head>
-----


1/ Using multilines selection, select the rows 'charset="UTF-8"' on both 'meta' lines
2/ Drag and drop selected text after the '</head>'


Result :
-----
	<head>
		<title>TODO supply a title</title>
		<meta content="width=device-width, initial-scale=1.0">
	</head>
	 charset="UTF-8">
-----


What is expected :
-----
	<head>
		<title>TODO supply a title</title>
		<meta>
		<meta content="width=device-width, initial-scale=1.0">
	</head>
 charset="UTF-8"
 name="viewport" 
-----

The bad paste is due to #267587 .
Anything, the first '<meta...>' shouldn't be deleted
If I use a ctrl-X / Ctrl-V, the first '<meta...>' isn't deleted