mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 01:20:17 +02:00
SynEdit: Wrapped-view, fix painting for non-wrapped lines. Update values for current (sub-)line
(cherry picked from commit 94f2b48f00
)
This commit is contained in:
parent
c01af285f4
commit
c9fdab8f85
@ -1295,16 +1295,17 @@ var
|
||||
begin
|
||||
if (not FCurWrapPage.HasPage) or (FCurWrapPage.StartLine > AWrappedLine) or
|
||||
(AWrappedLine >= FCurWrapPage.RealEndLine)
|
||||
then begin
|
||||
then
|
||||
FCurWrapPage := FLineMappingView.FLineMappingData.FindPageForWrap(AWrappedLine);
|
||||
FCurWrappedLine := AWrappedLine;
|
||||
end;
|
||||
FCurWrappedLine := AWrappedLine;
|
||||
|
||||
if FCurWrapPage.HasPage then
|
||||
RealIdx := FCurWrapPage.StartLine +
|
||||
FCurWrapPage.Page.GetOffsetForWrap(AWrappedLine - FCurWrapPage.StartLine - FCurWrapPage.ViewedCountDifferenceBefore, FCurrentWrapSubline)
|
||||
else
|
||||
RealIdx := AWrappedLine;
|
||||
else begin
|
||||
RealIdx := AWrappedLine;
|
||||
FCurrentWrapSubline := 0;
|
||||
end;
|
||||
|
||||
inherited SetHighlighterTokensLine(RealIdx, ARealLine, AStartBytePos, ALineByteLen);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user