mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-26 07:48:16 +02:00
SynEdit: Fix MultySyn Highlighter (uninitialized field)
git-svn-id: trunk@33512 -
This commit is contained in:
parent
65bfe33229
commit
55b2d823fb
@ -619,15 +619,18 @@ begin
|
|||||||
do
|
do
|
||||||
FSectionList.Delete(FRegionScanRangeIndex);
|
FSectionList.Delete(FRegionScanRangeIndex);
|
||||||
VDiff := 0;
|
VDiff := 0;
|
||||||
|
DebugLn(['***** ', FRegionScanStartRangeIndex, ' cnt ', Count]);
|
||||||
if FRegionScanStartRangeIndex < Count then begin
|
if FRegionScanStartRangeIndex < Count then begin
|
||||||
// fix virtual lines on sections
|
// fix virtual lines on sections
|
||||||
if (FRegionScanStartRangeIndex > 0) then begin
|
if (FRegionScanStartRangeIndex > 0) then begin
|
||||||
s := FSectionList.Sections[FRegionScanStartRangeIndex-1];
|
s := FSectionList.Sections[FRegionScanStartRangeIndex-1];
|
||||||
NewVLine := s.VirtualLine + s.EndPos.y - s.StartPos.y;
|
NewVLine := s.VirtualLine + s.EndPos.y - s.StartPos.y;
|
||||||
|
DebugLn(['A ', NewVLine]);
|
||||||
LastEnd := s.EndPos.y;
|
LastEnd := s.EndPos.y;
|
||||||
end
|
end
|
||||||
else begin
|
else begin
|
||||||
NewVLine := 0;
|
NewVLine := 0;
|
||||||
|
DebugLn(['B ', NewVLine]);
|
||||||
LastEnd := FSectionList.Sections[FRegionScanStartRangeIndex].StartPos.y;
|
LastEnd := FSectionList.Sections[FRegionScanStartRangeIndex].StartPos.y;
|
||||||
end;
|
end;
|
||||||
LastVline := NewVLine;
|
LastVline := NewVLine;
|
||||||
@ -679,6 +682,7 @@ begin
|
|||||||
Sect.EndPos := AnEndPoint;
|
Sect.EndPos := AnEndPoint;
|
||||||
Sect.TokenStartPos := ATokenStartPos;
|
Sect.TokenStartPos := ATokenStartPos;
|
||||||
Sect.TokenEndPos := ATokenEndPos;
|
Sect.TokenEndPos := ATokenEndPos;
|
||||||
|
Sect.VirtualLine := 0;
|
||||||
FSectionList.Insert(FRegionScanRangeIndex, Sect);
|
FSectionList.Insert(FRegionScanRangeIndex, Sect);
|
||||||
end else begin
|
end else begin
|
||||||
p := FSectionList.PSections[FRegionScanRangeIndex];
|
p := FSectionList.PSections[FRegionScanRangeIndex];
|
||||||
|
Loading…
Reference in New Issue
Block a user