Problem with auto indent
Posted: Thu Jan 12, 2023 8:57 pm
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
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