Document snapshot returned by an undo or redo transition.
The history owns which snapshot should be restored. The buffer process owns applying that snapshot to the live buffer state.
Summary
Functions
Creates a restore snapshot.
Types
@type t() :: %Minga.Buffer.UndoHistory.Restore{ document: Minga.Buffer.Document.t(), source: Minga.Buffer.EditSource.undo_source(), version: non_neg_integer() }
Functions
@spec new( non_neg_integer(), Minga.Buffer.Document.t(), Minga.Buffer.EditSource.undo_source() ) :: t()
Creates a restore snapshot.