This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE 6.7 (Build 200906241340) Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Userdir: D:\develop\labs\nbprofile67 All folding checkboxes in preferences are checked. When document folded and I am unfolding one section and using it as example to write another similar section - with any document structure change manually unfolded block folds back, and I have to unfold it once again.
Created attachment 85327 [details] file to reproduce problem
Steps to reproduce: (I am using line numbers from attached file) 1. Check all folding checkboxes in preferences. 2. Open build-impl.xml (from attachment or any of your projects). 3. Unfold block at line 678 and all it's subblocks. 3. Go to line 685 4. After line 685 start typing another <target Expected result: block at line 678 will stay unfolded if it was unfolded manyally Actual result: block at line 678 folded back, manual unfolding required to see it again.
IMO this is a problem in XML fold manager, which always creates new folds instead of reusing existing ones. The infrastructure applies the folding rules to any newly created fold.