SynEdit: clean up, formatting !442

This commit is contained in:
Martin 2025-02-28 00:10:29 +01:00
parent a4bc127fb2
commit a39516d0db
2 changed files with 20 additions and 19 deletions

View File

@ -1807,7 +1807,8 @@ var
begin
ANextNode.ClearInfo;
Assert(ANode.IsValid, 'ANode.IsValid in MaybeExtendNodeForward');
if AStopBeforeLine < 0 then AStopBeforeLine := Lines.Count + 1;
if AStopBeforeLine < 0 then
AStopBeforeLine := Lines.Count + 1;
// ANode is a Scan-Start-Marker and may be extended downto StartLine
Line := ANode.StartLine + ANode.ScanEndOffs;
while Line < AStopBeforeLine - 1 do begin