Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Auto surrounding with '/'
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

graemethornton
New Member

United Kingdom
6 Posts

Posted - Jan 25 2004 :  12:10:43 PM  Show Profile
If i have a function such as this one:

void Something()
{
int a = 0;
if ( a > 0 )
{
Blah();
}
}

and i select it all from the BOTTOM to the top, then press '/' with the auto-surrounding turned on, it will comment out all but the final closing brace. The selection must start on the actual line of the final brace. You can see in the selection box that the final brace is selected, but it does not get commented out.

support
Whole Tomato Software

5566 Posts

Posted - Jan 25 2004 :  3:48:51 PM  Show Profile
The problem appears to be restricted to VC++ 6.0 and only when you select the bottom line by starting your selection at the right edge of the line. If you select using the selection margin on the left, behavior is as you expect.

We will look for a fix.

Whole Tomato Software, Inc.
Go to Top of Page

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Jan 26 2004 :  1:39:23 PM  Show Profile
Not just VC++ 6: I'm seeing this in VC.NET 2002 (IDE 7.0.9466) too. In fact, I can describe a few more symptoms too.

Select bottom-to-top from right-hand edge of text fails as described.

Other selections usually work. However, if the function is the very last thing in the file -- without even a new line after it -- some more things go wrong, as follows:

Select bottom-to-top from right-hand edge of text fails as before.
Select bottom-to-top in the margin also fails in the same way.
Select top-to-bottom in the margin or in the text fails in a different way. It doesn't comment out the block, or insert a slash or replace the block by a slash, but it does deselect the current block.

I have line numbers in my margin, and my font is Verdana, but neither of those seem to make any difference.

I'd like to point out that there was a previous (VA 7) bug on the same topic: http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=920. Note that the last symptom above is identical to one described in that bug. The symptom can't now be reproduced by the method described in that bug report, so obviously some work has gone on in this area: but maybe it was incomplete.

Hope that helps track it down.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jan 26 2004 :  2:41:43 PM  Show Profile
We will do some more testing. We tried only in VS.NET 2003 and VC++ 6.0. We didn't think to test VS.NET 2002. Sigh.

Thank you for the detailed description.

Whole Tomato Software, Inc.
Go to Top of Page

imtrobin
Ketchup Master

50 Posts

Posted - Feb 04 2004 :  3:00:04 PM  Show Profile
I'm using VSNet 2003 and selecting bottom to top also fails
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000