-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LexProps: don't set header flag for empty section #96
Comments
Is there an example file? |
An example, toggle folds not fails in SciTE (not sure why), fold display text can't be tested in SciTE. ; comment
[empty section]
[normal section]
@=default
key=value Edit: updated example to list all styles. |
Full code for |
int lev = levelPrevious & SC_FOLDLEVELNUMBERMASK;
if (levelPrevious & SC_FOLDLEVELHEADERFLAG) {
lev = SC_FOLDLEVELBASE + 1;
} Or with another name to avoid shadowing. The inner declaration of |
It seems last |
This pattern is used to avoid transient changes (and potential unfolding) due to not running the full logic past the end. It may or may not be needed in this case. |
Changed to following int level = levelPrevious & SC_FOLDLEVELNUMBERMASK;
if (levelPrevious & SC_FOLDLEVELHEADERFLAG) {
level += 1;
} |
Included in 5.1.9. |
To prevent
FoldAction::Toggle
failure and avoid showing fold display text after toggle folds.The text was updated successfully, but these errors were encountered: