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
 surrounding curly brackets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dodudo7
Ketchup Master

Israel
55 Posts

Posted - Sep 03 2006 :  2:06:26 PM  Show Profile  Reply with Quote
I observed that in latest 15xx versions when adding surrounding brackets around a few selected lines of code the position of the brackets is not as I would expect. Usually I surround code with curly brackets in order to add some condition before the selected lines.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 03 2006 :  4:56:13 PM  Show Profile  Reply with Quote
i can get something similar using VS2003, C++ and VA 1534, but not quite the same. for me it only happens if i select the text by starting at the bottom and using the keyboard, holding down shift while i press the up arrow.

if i select text by starting at the top and moving downwards this does not happen.

case=1521

zen is the art of being at one with the two'ness
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 04 2006 :  12:14:08 AM  Show Profile  Reply with Quote
There is also a known issue (case=1794) with the "surround selection with..." feature in combination with Unix line endings.

Joe Pizzi
Go to Top of Page

dodudo7
Ketchup Master

Israel
55 Posts

Posted - Sep 04 2006 :  05:57:38 AM  Show Profile  Reply with Quote
Indeed, I'm using VS2003, sorry for not mentioning that.
This happens to me, no matter if I start the selection at top and move downwards or start at the bottom and move upward.

In some occasions, I see that the closing bracket is appended to the last selected line instead of being inserted in a new line.
Interestingly, sometimes, if I Ctrl-Z after a pair of brackets is incorrectly placed, and I try again, now the brackets will be placed correctly.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 04 2006 :  5:47:07 PM  Show Profile  Reply with Quote
does this happen in all files, or only some?

do your files have windows, UNIX or Mac line endings? file menu -> advanced save options may give you a clue if you are not sure.

zen is the art of being at one with the two'ness
Go to Top of Page

dodudo7
Ketchup Master

Israel
55 Posts

Posted - Sep 05 2006 :  07:37:24 AM  Show Profile  Reply with Quote
Most of our source code is compiled also on Unix, so yes, the files have Unix line endings.
Just for the testing, I converted one of the files to DOS line ending and I got the same result as you described in your previous post, downward selection is surrounded OK, but not the upward.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 05 2006 :  4:28:15 PM  Show Profile  Reply with Quote
it looks like

case=1794

covers this then.

zen is the art of being at one with the two'ness
Go to Top of Page

kurt
Junior Member

15 Posts

Posted - Sep 05 2006 :  8:00:56 PM  Show Profile  Reply with Quote
Reported in forum topic 4983.
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4983
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 19 2006 :  9:04:22 PM  Show Profile  Reply with Quote
case=1794 is fixed in build 1543
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 10 2008 :  01:28:39 AM  Show Profile  Reply with Quote
case=1521 is fixed in build 1632
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000