Using the CDT editor for the C language, sticky scrolling seems to use the fallback style based purely on indents when the code is formatted in the Allman style, where curly braces are on their own line. It does grab the case: label properly, as shown in the screenshots.
I would like the sticky scrolling to work like it apparently does in JDT now, where you get the actual useful line of context for the function, control statements, etc.
This issue is similar to twwwt's comment referenced below:
Doesn't work so well when one uses a code format where opening braces of a block begin on a new line:

For such formats the previous line should also be sticky to provide sufficient context.
What is more, the horizontal indentation doesn't seem to align perfectly when using tabs for indentation.
Originally posted by @twwwt in #2152
Using the CDT editor for the C language, sticky scrolling seems to use the fallback style based purely on indents when the code is formatted in the Allman style, where curly braces are on their own line. It does grab the case: label properly, as shown in the screenshots.
I would like the sticky scrolling to work like it apparently does in JDT now, where you get the actual useful line of context for the function, control statements, etc.
This issue is similar to twwwt's comment referenced below:
Originally posted by @twwwt in #2152