From a052343d837a34deb8289539b51825b621f260ca Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 23 Jul 2018 22:44:24 +0000 Subject: [PATCH] SynEdit: Fix TLazSynEditNestedFoldsList. NodeEndLine was not reset when line changed git-svn-id: trunk@58606 - --- components/synedit/synedithighlighterfoldbase.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/synedit/synedithighlighterfoldbase.pas b/components/synedit/synedithighlighterfoldbase.pas index 38f62ae839..a7ac30c4e0 100644 --- a/components/synedit/synedithighlighterfoldbase.pas +++ b/components/synedit/synedithighlighterfoldbase.pas @@ -953,6 +953,7 @@ begin FPreviousNestInfo := FNestInfo; FPreviousLine := FLine; FNestInfo := nil; + FOnLineNestInfo := nil; FLine := AValue; FCount := -1; // will trigger InitCount @@ -1017,6 +1018,7 @@ begin // Warning: storing endlevels, not minlevels FNestInfo[FCount].FGroupMinLevels := copy(FGroupEndLevelsAtEval,0, length(FGroupEndLevelsAtEval)); FNestInfo[FCount].LineIdx := Line - 1; + FNestInfo[FCount].EndLineIdx := 0; end; function TLazSynEditNestedFoldsList.GetHLNode(Index: Integer): TSynFoldNodeInfo; @@ -1555,6 +1557,7 @@ begin FOnLineNestInfo[j].LineIdx := FLine; FOnLineNestInfo[j].HNode := nd; FOnLineNestInfo[j].HNode.NodeIndex := j; + FOnLineNestInfo[j].EndLineIdx := 0; end; end;