mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-21 07:00:10 +01:00
SynEdit: small fix/optimization to caret (avoid extra SetPos calls)
git-svn-id: trunk@27151 -
This commit is contained in:
parent
66ad9fe3d0
commit
5afc05a556
@ -1794,6 +1794,8 @@ begin
|
|||||||
debugln(['SynEditCaret SetPos for handle=',FHandle, ' x=', x, ' y=',y]);
|
debugln(['SynEditCaret SetPos for handle=',FHandle, ' x=', x, ' y=',y]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
SetCaretPosEx(FHandle, x, y);
|
SetCaretPosEx(FHandle, x, y);
|
||||||
|
FCurrentPosX := x;
|
||||||
|
FCurrentPosY := y;
|
||||||
end;
|
end;
|
||||||
if (not FCurrentVisible) then begin
|
if (not FCurrentVisible) then begin
|
||||||
{$IFDeF SynCaretDebug}
|
{$IFDeF SynCaretDebug}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user