SynEdit: small fix/optimization to caret (avoid extra SetPos calls)

git-svn-id: trunk@27151 -
This commit is contained in:
martin 2010-08-19 23:48:09 +00:00
parent 66ad9fe3d0
commit 5afc05a556

View File

@ -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}