# `Minga.Events.BufferChangedEvent`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga/events.ex#L73)

Payload for `:buffer_changed` events.

Carries the edit delta and source identity so subscribers can do
incremental work directly from the event payload without calling
back to the buffer.

When `delta` is `nil`, the edit was a bulk operation (undo, redo,
content replacement) and subscribers should fall back to full sync.

# `t`

```elixir
@type t() :: %Minga.Events.BufferChangedEvent{
  buffer: pid(),
  delta: Minga.Buffer.EditDelta.t() | nil,
  source: Minga.Buffer.EditSource.t(),
  version: non_neg_integer() | nil
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
