Page 1 of 1

Informix/4gl/genero code folding bug

Posted: Thu Sep 27, 2012 1:24 am
by gwgs

Code: Select all

IF abc = def THEN
   .
   .
   .
ELSE
   ..
   ..
   ..
END IF 

...
...
...
Using the above code, fold ELSE, then fold IF, result will be just one line:

Code: Select all

IF abc = def THEN ...
If you fold the IF and then the ELSE you get:

Code: Select all

IF abc = def THEN ...
ELSE ... END IF

...
...
...

only occurs in Informix. In python and powerflex it folds correctly.

Zeus 3.97n
Win 7

Thanks
Grant

Posted: Thu Sep 27, 2012 3:43 am
by jussij
Hi Grant,

This is by design. The else is a fold point just like the if and end if.
Using the above code, fold ELSE, then fold IF, result will be just one line:

But that one is a bug. I have seen this before and from what I recall it is a tough one to fix :(

Cheers Jussi