SynEdit: speed up large operations (search replace)

git-svn-id: trunk@43762 -
This commit is contained in:
martin 2014-01-18 18:48:17 +00:00
parent c5bd5091ff
commit a586b848df

View File

@ -792,7 +792,9 @@ procedure TSynEditCaret.DoLinesEdited(Sender: TSynEditStrings; aLinePos, aBytePo
var
p: TPoint;
begin
if FAutoMoveOnEdit > 0 then begin
if (FAutoMoveOnEdit > 0) and
( (aLineBrkCnt <> 0) or (aLinePos = FLinePos) )
then begin
IncForcePastEOL;
ValidateBytePos;
p := AdjustPoint(Point(FBytePos, FLinePos));