Author Topic: SE23 C indentation after label  (Read 1516 times)

jc44

  • Senior Community Member
  • Posts: 329
  • Hero Points: 22
SE23 C indentation after label
« on: November 15, 2018, 12:44:44 PM »
Hi

An oddity with labels & indent.  Starting with the code

void myfn(void)
{
   int x;
label:
   printf("Wombats\n");

}

and the cursor at the end of the printf line type <cr> and any new line of C and it turns up with zero indent, thus:

void myfn(void)
{
   int x;
label:
   printf("Wombats\n");
printf("Why is the indent reset to zero?");

}

this is particularly odd due to the fact that the line immediately following the label gets the correct indent.

Thanks

JC

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: SE23 C indentation after label
« Reply #1 on: November 16, 2018, 02:23:08 PM »
Reproduced.  I'll take a look at it.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6866
  • Hero Points: 528
Re: SE23 C indentation after label
« Reply #2 on: November 16, 2018, 08:53:34 PM »
Fixed in the next hot fix build (hot fix 1 I think).