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
 VAX 1210 on VC6 - Toggling surround with # fails
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Dec 30 2003 :  2:38:13 PM  Show Profile
If I select only the red portion of the following text:


     <TAB><TAB>ITreeLevel<CR>


... and then press the "#" key, the text is changed to:


     <TAB><TAB>#ifdef _DEBUG<CR>
     <TAB><TAB>ITreeLevel#endif // _DEBUG<CR>
     <TAB><TAB><CR>


... with only the red portion selected (I can't display reverse video here). Note that the #endif is on the same line as ITreeLevel.

Now if I press the "#" key again, which is supposed to toggle it, I end up with:


     <TAB><TAB>#ifdef _DE#ifdef _DEBUG<CR>
     <TAB><TAB>BUG<CR>
     <TAB><TAB><TAB><TAB>ITreeLevel#endif // _DEBUG<CR>
     <TAB><TAB><TAB><TAB>#endif // _DEBUG<CR>


... which is pretty much a mess...

Note that ITreeLevel starts off indented two tabs to the right; if I remove the indentation, then toggling works correctly.

Also, note that if I select the <CR> at the end of line, then it all works correctly.

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Jan 05 2004 :  03:30:50 AM  Show Profile
Hello Larry (and all others),

Please take a look at http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=1075. It's about surrounding comments; it's somewhat related.

With kind regards,
Patrick Luja
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