Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358412 - Double "toggle comment" command does not uncomment the selected lines.
Summary: Double "toggle comment" command does not uncomment the selected lines.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 09:33 EDT by Ilina Stefanova CLA
Modified: 2020-05-14 11:38 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilina Stefanova CLA 2011-09-21 09:33:38 EDT
Steps:

Select some lines in a php file on the editor and try to toggle comment them (press "apple key + /"). Repeat this action.
// function row_color($i)
// {
// 	$bgcolor1 = "white";
// 	$bgcolor2 = "yellow";

// 	if ( ($i % 2) == 0 ) {
// 		return $bgcolor1;
// 	} else {
// 		return $bgcolor2;
// 	}
// }



Expected Result:
The text should be uncomment:

function row_color($i)
{
	$bgcolor1 = "white";
	$bgcolor2 = "yellow";

	if ( ($i % 2) == 0 ) {
		return $bgcolor1;
	} else {
		return $bgcolor2;
	}
}

Actual Result:
The comment becomes double:

//// function row_color($i)
//// {
//// 	$bgcolor1 = "white";
//// 	$bgcolor2 = "yellow";

//// 	if ( ($i % 2) == 0 ) {
//// 		return $bgcolor1;
//// 	} else {
//// 		return $bgcolor2;
//// 	}
//// }
Comment 1 Zhongwei Zhao CLA 2011-10-11 01:52:42 EDT
fixed in head
Comment 2 Sylvia Tancheva CLA 2011-10-18 09:24:45 EDT
Verified.
Ilina Stefanova