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
 Feature Requests
 Move cursor to after ) instead of in between ( )
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

20thCenturyBoy
Junior Member

Australia
11 Posts

Posted - Dec 10 2004 :  10:31:41 PM  Show Profile
Subject says it really. Eg if I type:
c.begin()

Code completion correctly inserts c.begin() but leaves the cursor in between the brackets, even though begin() takes no arguments, and I have to always right-arrow to move past the right-hand bracket. It really breaks up the flow of typing.

VA obviously can tell if a function takes any arguments or not, so could it be changed to only place the cursor in between brackets if a function takes arguments, and past the brackets if the function takes no arguments?

20thCB

support
Whole Tomato Software

5566 Posts

Posted - Dec 11 2004 :  12:21:38 PM  Show Profile
If you *type* a left paren, VA X inserts a right paren but does not move the caret. This is by design. You can type a right paren yourself -- VA X will overwrite the inserted one.

If you select a method from a members listbox, i.e. after typing dot, VA X inserts parens and places the caret inside the parens if the method takes an argument. If no argument, VA X places the caret after the right paren. If a method is overloaded and at least one variant takes an argument, VA X places the caret between parens.

Is your "begin" overloaded? Place the caret on the method and check the dropdown arrow at the right of our Definition field.
Go to Top of Page

20thCenturyBoy
Junior Member

Australia
11 Posts

Posted - Dec 12 2004 :  05:19:36 AM  Show Profile
It's the STL begin() for containers. It has no arguments. The same thing happens with end(). I'm using VAX 10.0.1278. It definitely doesn't work as you describe.

20thCB
Go to Top of Page

rblondeau
Tomato Guru

Canada
102 Posts

Posted - Dec 12 2004 :  4:42:04 PM  Show Profile
This is not a new problem. It's been around for quite a while and has been discussed at length in previous posts.

Whenever I use the STL (usually with the begin and end methods) I get inconsistent results with where the cursor is placed. Sometimes it's between the parentheses and sometimes is after the closing parenthesis.
Go to Top of Page

20thCenturyBoy
Junior Member

Australia
11 Posts

Posted - Dec 13 2004 :  03:32:23 AM  Show Profile
Heh. For me it's always in between the brackets which is ruddy annoying! Ah well, I can live with it for the time being, but I jope it's on the todo list

20thCb
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Dec 13 2004 :  3:02:58 PM  Show Profile
begin and end are overloaded, since they return either a normal iterator or a const iterator. since there is an overload VAX places the caret between the brackets.

irritating i know. at least knowing there is a reason, even if this is a bug, helps

case=293

zen is the art of being at one with the two'ness
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