Forget undo history in constructors taking content