mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 05:38:16 +02: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]);
|
||||
{$ENDIF}
|
||||
SetCaretPosEx(FHandle, x, y);
|
||||
FCurrentPosX := x;
|
||||
FCurrentPosY := y;
|
||||
end;
|
||||
if (not FCurrentVisible) then begin
|
||||
{$IFDeF SynCaretDebug}
|
||||
|
Loading…
Reference in New Issue
Block a user