[bugs:#2442] Issue with automatic folding and SC_FOLDLEVELWHITEFLAG
Status: open
Group: Bug
Labels: scintilla
Created: Wed Jun 19, 2024 06:34 PM UTC by Martijn Laan
Last Updated: Wed Jun 19, 2024 06:34 PM UTC
Owner: nobody
Attachments:
I'm seeing the following odd behaviour in a container which has SC_AUTOMATICFOLD_SHOW, SC_AUTOMATICFOLD_CLICK and SC_AUTOMATICFOLD_CHANGE all on.
The issue does not appear when I click the plus sign instead in step 5.
I tried looking at Scintilla's folding code but it was too complicated for me to debug the issue.
Thanks!
Greetings,
Martijn Laan
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
You should add the file to this issue and name the lexer being used.
This makes the contrainer change the level numbers
So it's not a lexer producing the folding but the container?
That's an unusual situation now. Its possible that this scenario isn't compatible with automatic folding and folding will have to be implemented in the application like it was before automatic was added.
Correct, no lexer is involved.
[bugs:#2442] Issue with automatic folding and SC_FOLDLEVELWHITEFLAG
Status: open
Group: Bug
Labels: scintilla
Created: Wed Jun 19, 2024 06:34 PM UTC by Martijn Laan
Last Updated: Tue Jul 16, 2024 10:37 PM UTC
Owner: nobody
Attachments:
The format appears similar to SciTE's properties file format so I wrote a similar file and set the language to Properties. This reproduced the levels and header and whitespace line states. For properties, bracketed section headers may contain spaces so a different way of unfolding is needed which can be done by removing the initial '[' . Contracted the first line then removed the '[' to unfold which revealed all the lines including the whitespace lines. Therefore, it appears the problem doesn't reproduce with SciTE.
[bugs:#2442] Issue with automatic folding and SC_FOLDLEVELWHITEFLAG
Status: open
Group: Bug
Labels: scintilla
Created: Wed Jun 19, 2024 06:34 PM UTC by Martijn Laan
Last Updated: Wed Jul 17, 2024 05:05 AM UTC
Owner: nobody
Attachments:
[bugs:#2442] Issue with automatic folding and SC_FOLDLEVELWHITEFLAG
Status: open-works-for-me
Group: Bug
Labels: scintilla
Created: Wed Jun 19, 2024 06:34 PM UTC by Martijn Laan
Last Updated: Wed Jul 17, 2024 11:20 AM UTC
Owner: nobody
Attachments:
[bugs:#2442] Issue with automatic folding and SC_FOLDLEVELWHITEFLAG
Status: closed-works-for-me
Group: Bug
Labels: scintilla
Created: Wed Jun 19, 2024 06:34 PM UTC by Martijn Laan
Last Updated: Mon Aug 12, 2024 11:09 PM UTC
Owner: nobody
Attachments: