SynEdit: Prevent duplicate OnStatusChanged calls during recursions.

This commit is contained in:
Martin 2025-02-22 20:14:32 +01:00
parent c3a7f80706
commit 1af3482262

View File

@ -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);