Minga.Events.BufferChangedEvent (Minga v0.1.0)

Copy Markdown View Source

Payload for :buffer_changed events.

Carries the edit delta, source identity, and monotonic change sequence so subscribers can detect and coalesce synchronization work 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.

Summary

Types

t()

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