Problem with auto indent

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
Jack
Posts: 27
Joined: Tue Jul 09, 2019 2:06 pm

Problem with auto indent

Post by Jack »

Hello,

I just upgraded to the newest Zeus from a version about 5 years old. There appears to be a bug in the auto indent algorithm for C/C++ that wasn't present in the older software

If you have this typed in with the cursor in LINE4 under the 's' in struct in line 3
LINE1: void function( void )
LINE2: {
LINE3: struct type_t var[] =
LINE4:
LINE5: }

Then type in an open brace, you now get this
LINE1: void function( void )
LINE2: {
LINE3: struct type_t var[] =
LINE4: {
LINE5: }

You use to get this with the cursor in LINE4 Immediately after the open brace
LINE1: void function( void )
LINE2: {
LINE3: struct type_t var[] =
LINE4: {
LINE5: }

Then Hit the enter key, you get this with the cursor in line 5 indented 1 tab more than the braces.
LINE1: void function( void )
LINE2: {
LINE3: struct type_t var[] =
LINE4: {
LINE5:
LINE6: }
LINE7: }

It is very annoying, I hope you can address it.
Thanks!
Jack
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Re: Problem with auto indent

Post by jussij »

This issue is now fixed in the new Zeus beta versions found here:

32 Bit: https://www.zeusedit.com/z300/zeus-beta32.zip
64 Bit: https://www.zeusedit.com/z300/zeus-beta64.zip

With this new version the behaviour can be control using the Smart Indenting option found in the Templates section of the Document Type.

Turning off the Smart Indenting option will mean this indenting is not performed.

Cheers Jussi
IMPORTANT NOTE: Before installing this new version, make sure you backup your current installation.
Jack
Posts: 27
Joined: Tue Jul 09, 2019 2:06 pm

Re: Problem with auto indent

Post by Jack »

I installed the newest Beta and turned off the Auto Brace indenting option. That seems to fix it. Looks like the nwe software introduces a new bug on a different topic. I will start a new thread

Thanks for the help!
Post Reply