User forums > General (but related to Code::Blocks)

Code Folding Bugs (Solved Again... and Again)

(1/5) > >>

joubertdj:
An interesting bug has occurred when I played around with code folding. It is not a major crash bug just maybe a visual/functional bug. Okay so I enabled all three code folding options (including Fold preprocessor commands) now I enabled this and enabled that code folding needs to fold everything at startup. Okay… exit and restart your project that even your header pre-processor (#ifndef _HEADER_H) is basically the only visible line( that and end of line) Now… go to settings and disable the Fold Pre-Processor tab in folding without opening up the folded _HEADER_H part… when you have done that (clicked OK) the two lines stil stay there and you can not go within the Pre-Processor part. Imaged attached.



PS. Using SVN Version of C::B with wxWidgets 2.6.3 + Pacthes

Can someone confirm this please?


[attachment deleted by admin]

joubertdj:
Okay... I think I have an idea how to fix this... I found the function that will fix everything after you changed your settings : void ToggleAllFolds(); (cbeditor.h) If I understand correctly... and my understanding is limited... this will fold everything that needs to be folded after you change your settings without keeping things folded without a way of accessing them?

Problem is where do I place this call after you pressed the "okay"?

Can some developer help me please so that I can test this?

joubertdj:
Hmm...  :?

Okay so in editormanager.cpp line 273 to 279 one has to tell the code folding part that if you disabled a folding option and it is still folded, you first need to expand the folded part before you return to the editor... else the bug that you can't see your codes or expand it... (with the little plus button)

Does this make sense so far? Anybody?

dje:
No, you're not alone  :)

In fact, I never use folding, that's why I didn't answer you before.

Your investigation looks interesting and I hope it will end with a C::B improvement !

Dje

joubertdj:
 :D Yeah... bug fixed... :D

The delay was due to the fact that I am buying a house, my boss wants to squeeze every drop of company resource out of me before Friday, and my wife also needs some attention  :lol:

Okay so I clean my C::B, do a SVN update and do the change and then do the SVN patch right?

Navigation

[0] Message Index

[#] Next page

Go to full version