SynEdit: Fixed a compile warning

git-svn-id: trunk@19061 -
This commit is contained in:
martin 2009-03-22 14:50:19 +00:00
parent 58d57194ca
commit d2cb648445

View File

@ -1456,9 +1456,11 @@ end;
procedure TSynEditFoldedView.LinesDeletedAtTextIndex(AStartIndex, ALineCount : Integer; SkipFixFolding : Boolean);
var top : Integer;
begin
top := TopTextIndex;
// topline may get out of sync => synedit is always going to chnage it back
fFoldTree.AdjustForLinesDeleted(AStartIndex+1, ALineCount);
if not(SkipFixFolding) then FixFoldingAtTextIndex(AStartIndex, AStartIndex+ALineCount+1)
if not(SkipFixFolding) then
FixFoldingAtTextIndex(AStartIndex, AStartIndex+ALineCount+1)
else
if AStartIndex < top - ALineCount then CalculateMaps;
end;