Page 1 of 1

2 opens on a line not working ( the way I expected, anyway)

Posted: Mon Apr 02, 2007 4:23 pm
by JackR
Hu Jussij,

I believe I found a bug in code folding. I am using version 3.95z of zeus. The one line comment below folds correctly. The 2 line comment does not probably because the 2 openings are on the same line. It just folds the comment. I never really understood why comments fold anyway, since I like folding to hide details, not the overview which comments contain.

{ /* one line comment OK*/

{ /* 2 line comment
continued Not OK */



Posted: Mon Apr 02, 2007 5:45 pm
by jussij
Unfortunatately, due to limitations in the design the code folding algorithm, it only allows one fold point per line. This means if a line contains two or more fold points, only one point will be counted and the other fold points are effectively lost.

This results in the unbalanced fold stituation you have described :(

Cheers Jussi