mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 20:36:09 +02:00
SynEdit: Fixed a compile warning
git-svn-id: trunk@19061 -
This commit is contained in:
parent
58d57194ca
commit
d2cb648445
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user