http://gambaswiki.org/bugtracker/edit?object=BUG.708&from=L21haW4-
Comment #29 by Jussi LAHTINEN: Bit more information about this... Bug happens (with "format on load & save" enabled) following way: 1. Open the project. 2. Add ' at the beginning of some line. IE comment it out. This marks the file being modified. 3. Save the project. This causes following code to be run from FEditor.class, function Save: ... If Settings["/FormatCode/FormatOnLoad"] Then MPrettyCode.Run(edtEditor) $bSkipChangeEvent = True Endif ... 4. Remove the ', placed on step 2. This causes event Editors_Change() to be triggered, but still $bSkipChangeEvent = True! If $bSkipChangeEvent Then $bSkipChangeEvent = False Else Modify Endif So, sub Modify is never executed. I think Editors_Change() should be called once more, but for some reason that doesn't happen when "prettyfying" the code. I hope this helps... I will look more tomorrow. ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user