mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 15:10:22 +02:00
SynEdit: fix forwarding result in LogicPosAddChars (introduced in r 39483) Issue #0023454
git-svn-id: trunk@39488 -
This commit is contained in:
parent
c09fb28755
commit
8594de7421
@ -891,8 +891,8 @@ function TSynEditStrings.LogicPosAddChars(const ALine: String; ALogicalPos, ACou
|
||||
AllowPastEOL: Boolean): Integer;
|
||||
begin
|
||||
if AllowPastEOL
|
||||
then LogicPosAddChars(ALine, ALogicalPos, ACount, [lpAllowPastEol])
|
||||
else LogicPosAddChars(ALine, ALogicalPos, ACount, []);
|
||||
then Result := LogicPosAddChars(ALine, ALogicalPos, ACount, [lpAllowPastEol])
|
||||
else Result := LogicPosAddChars(ALine, ALogicalPos, ACount, []);
|
||||
end;
|
||||
|
||||
function TSynEditStrings.LogicPosAdjustToChar(const ALine: String; ALogicalPos: integer;
|
||||
@ -905,7 +905,7 @@ begin
|
||||
else f := [];
|
||||
if ANext
|
||||
then f := f + [lpAdjustToNext];
|
||||
LogicPosAdjustToChar(ALine, ALogicalPos, f);
|
||||
Result := LogicPosAdjustToChar(ALine, ALogicalPos, f);
|
||||
end;
|
||||
|
||||
function TSynEditStrings.GetPhysicalCharWidths(Index: Integer): TPhysicalCharWidths;
|
||||
|
Loading…
Reference in New Issue
Block a user