Minga.Buffer.UndoHistory.Restore (Minga v0.1.0)

Copy Markdown View Source

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

t()

@type t() :: %Minga.Buffer.UndoHistory.Restore{
  document: Minga.Buffer.Document.t(),
  source: Minga.Buffer.EditSource.undo_source(),
  version: non_neg_integer()
}

Functions

new(version, document, source)

Creates a restore snapshot.