SynEdit: optimize status-events

This commit is contained in:
Martin 2025-01-24 11:26:12 +01:00
parent 7c69859cf3
commit 33ea43b9e4

View File

@ -5060,12 +5060,16 @@ end;
procedure TCustomSynEdit.SynSetText(const Value: string);
begin
IncStatusChangeLock; // can affect width (via gutter) and caret
FLines.Text := Value;
DecStatusChangeLock;
end;
procedure TCustomSynEdit.RealSetText(const Value: TCaption);
begin
IncStatusChangeLock; // can affect width (via gutter) and caret
FLines.Text := Value; // Do not trim
DecStatusChangeLock;
end;
function TCustomSynEdit.CurrentMaxTopView: Integer;