What steps will reproduce the problem?
1. use 'toggle comments' to comment out an entire method or function that
is preceeded by a comment like so:
//this is my method
void Class::method()
{
cout << "stuff\n";
}
What is the expected output? What do you see instead?
I expect a layer of comments to be added to the selection. Instead, the
program freezes. If i don't select the entire method/class then the
comment at the beginning is switched to regular text, also not expected
output.
The 'toggle comments'-function should add a layer of comments to the
selection as long as there is at least one line with non-white-space and
non-commented text. Otherwise, the comments should be reversed.
this:
<selection>
// Using ctrl+d on this selection should add a new layer of comments
asdf
//
</selection>
becomes this:
<selection>
//// using ctrl+d on this selection should add a new layer of comments
//asdf
////
</selection>
but this:
<selection>
//some commented
//lines
</selection>
should become this:
<selection>
some commented
lines
</selection>
What version of the product are you using? On what operating system?
0.21, WinXP-pro
Please provide any additional information below.
Original issue reported on code.google.com by miguel.s...@gmail.com on 8 Mar 2007 at 5:25
Original issue reported on code.google.com by
miguel.s...@gmail.com
on 8 Mar 2007 at 5:25