mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 12:30:36 +02:00
SynEdit: Prevent duplicate OnStatusChanged calls during recursions.
This commit is contained in:
parent
c3a7f80706
commit
1af3482262
@ -10496,10 +10496,10 @@ end;
|
||||
|
||||
procedure TCustomSynEdit.DoOnStatusChange(Changes: TSynStatusChanges);
|
||||
begin
|
||||
fStatusChanges := [];
|
||||
TSynStatusChangedHandlerList(FStatusChangedList).CallStatusChangedHandlers(Self, Changes);
|
||||
if Assigned(fOnStatusChange) then
|
||||
fOnStatusChange(Self, fStatusChanges);
|
||||
fStatusChanges := [];
|
||||
fOnStatusChange(Self, Changes);
|
||||
end;
|
||||
|
||||
procedure TCustomSynEdit.UndoRedoAdded(Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user