mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 14:39:27 +02:00
SynEdit: Fix painting wrong color (introduced in rev 38964 #55a09f4952
git-svn-id: trunk@38969 -
This commit is contained in:
parent
7874a19bd8
commit
6ba263edec
@ -594,13 +594,13 @@ begin
|
||||
if FCurViewToken.Tk.TokenLength = 0 then
|
||||
ATokenInfo.Attr.EndX := PhysPos-1;
|
||||
|
||||
MaybeFetchToken;
|
||||
if MaybeChangeToRtl(LogicIdx, LogicEnd) then begin // get NextTokenPhysStart
|
||||
SkipRtlOffScreen(LogicIdx, LogicEnd);
|
||||
while FCurViewToken.Tk.TokenLength = 0 do
|
||||
if MaybeFetchToken then
|
||||
SkipRtlOffScreen(LogicIdx, LogicEnd);
|
||||
end;
|
||||
//MaybeFetchToken;
|
||||
//if MaybeChangeToRtl(LogicIdx, LogicEnd) then begin // get NextTokenPhysStart
|
||||
// SkipRtlOffScreen(LogicIdx, LogicEnd);
|
||||
// while FCurViewToken.Tk.TokenLength = 0 do
|
||||
// if MaybeFetchToken then
|
||||
// SkipRtlOffScreen(LogicIdx, LogicEnd);
|
||||
//end;
|
||||
|
||||
ATokenInfo.NextPhysicalPaintStart := FCurViewToken.PhysicalPaintStart;
|
||||
ATokenInfo.NextLogicStart := FCurViewToken.LogicalStart;
|
||||
@ -692,12 +692,12 @@ begin
|
||||
if FCurViewToken.Tk.TokenLength = 0 then
|
||||
ATokenInfo.Attr.EndX := PhysPos-1;
|
||||
|
||||
MaybeFetchToken;
|
||||
SkipRtlOffScreen(LogicIdx, LogicEnd);
|
||||
while FCurViewToken.Tk.TokenLength = 0 do
|
||||
if MaybeFetchToken then
|
||||
SkipRtlOffScreen(LogicIdx, LogicEnd);
|
||||
MaybeChangeToLtr(LogicIdx, LogicEnd); // get NextTokenPhysStart
|
||||
//MaybeFetchToken;
|
||||
//SkipRtlOffScreen(LogicIdx, LogicEnd);
|
||||
//while FCurViewToken.Tk.TokenLength = 0 do
|
||||
// if MaybeFetchToken then
|
||||
// SkipRtlOffScreen(LogicIdx, LogicEnd);
|
||||
//MaybeChangeToLtr(LogicIdx, LogicEnd); // get NextTokenPhysStart
|
||||
|
||||
ATokenInfo.NextPhysicalPaintStart := FCurViewToken.PhysicalPaintStart;
|
||||
ATokenInfo.NextLogicStart := FCurViewToken.LogicalStart;
|
||||
|
Loading…
Reference in New Issue
Block a user