Author |
Topic |
|
dodudo7
Ketchup Master
Israel
55 Posts |
Posted - Sep 03 2006 : 2:06:26 PM
|
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
19020 Posts |
Posted - Sep 03 2006 : 4:56:13 PM
|
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 |
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Sep 04 2006 : 12:14:08 AM
|
There is also a known issue (case=1794) with the "surround selection with..." feature in combination with Unix line endings. |
Joe Pizzi |
|
|
dodudo7
Ketchup Master
Israel
55 Posts |
Posted - Sep 04 2006 : 05:57:38 AM
|
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. |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Sep 04 2006 : 5:47:07 PM
|
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 |
|
|
dodudo7
Ketchup Master
Israel
55 Posts |
Posted - Sep 05 2006 : 07:37:24 AM
|
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.
|
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Sep 05 2006 : 4:28:15 PM
|
it looks like
case=1794
covers this then. |
zen is the art of being at one with the two'ness |
|
|
kurt
Junior Member
15 Posts |
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Dec 19 2006 : 9:04:22 PM
|
case=1794 is fixed in build 1543 |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Apr 10 2008 : 01:28:39 AM
|
case=1521 is fixed in build 1632 |
|
|
|
Topic |
|