Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Jun 16, 2024
1 parent 6e7d3ab commit aa041e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Components/ScintEdit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,10 @@ procedure TScintEdit.StyleNeeded(const EndPos: Integer);
Inc(FoldLevel, SC_FOLDLEVELBASE);
if FoldHeader then
FoldLevel := FoldLevel or SC_FOLDLEVELHEADERFLAG;
{ Setting SC_FOLDLEVELWHITEFLAG on empty lines causes a problem: when
Scintilla auto expands a collapsed section (for example after removing ']'
from a section header) all the empty lines stay invisible, even any which
are in the middle of the section. }

for var I := FirstLine to LastLine do begin
var OldState := FLines.GetState(I);
Expand Down

0 comments on commit aa041e2

Please sign in to comment.