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
 closing curly brace get eaten up ...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bins
Ketchup Master

United Kingdom
77 Posts

Posted - May 25 2004 :  5:20:29 PM  Show Profile
VC7.1 .net2003
VAX 1237
when editing I sometime lose a traling brace.
to repro, do this, with insert closing brace on.

1.

int f()
{
}

2.
int f()
{
if(1)
{
}
}

3. then erase the closing brace from the if() clause and retype it.
The closing brace from the f() clause moves up to complete the if()
like this.

int f()
{
if(1)
{
}

You seem to have to erase the brace from it's right (using backspace).
Using delete from it's left doesn't cause the problem.
After retyping the final brace, subsequent erasure and re-typing of the closing if() brace works fine.

Rob

support
Whole Tomato Software

5566 Posts

Posted - May 25 2004 :  6:09:55 PM  Show Profile
We can reproduce the problem if we set tab indent to "None."

Typing a } after one was recently auto-inserted makes VA X overwrite. If you move or edit (anything but type straight text,) before typing a }, VA X inserts a new one. It forgets it auto-inserted.

In your example, you need only a down arrow to move the caret to the desired position for the Backspace. Unfortunately, down arrow does not make VA X forget. Left and right do.

case=90

Whole Tomato Software, Inc.
Go to Top of Page

bins
Ketchup Master

United Kingdom
77 Posts

Posted - May 25 2004 :  6:27:30 PM  Show Profile
The code I posted did not come out as intended because I didn't know
how to put tabs in (the TAB key takes me to the .sig check box)
So it should look like
1.

int f()
{
<tab>
}

2.
int f()
{
<tab>if(1)
<tab><tab>{
<tab><tab>}
}

etc...

Rob
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - May 26 2004 :  03:25:34 AM  Show Profile
That's where the code-tags come in handy... (it's the "#" Button on top when answering)


int f()
{
    if(1)
    {

    }
}

Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 26 2004 :  1:36:12 PM  Show Profile
Will be fixed in 1238.

Whole Tomato Software, Inc.
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