mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 11:08:00 +02:00
SynEdit: optimize status-events
This commit is contained in:
parent
7c69859cf3
commit
33ea43b9e4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user