tonkv / qdevelop

Automatically exported from code.google.com/p/qdevelop
0 stars 0 forks source link

commenting comments causes ide to freeze. #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Fixed in revision 142.

Original comment by jlbi...@gmail.com on 9 Jun 2007 at 4:25