Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeLastTwoEdits ¶
func MergeLastTwoEdits(h *History)
func MergeTwoEdits ¶
func MergeTwoEdits(h *History, tce *TwoConsecutiveEdits)
func TryToMergeLastTwoEdits ¶
func TryToMergeLastTwoEdits(h *History)
Types ¶
type Edit ¶
type Edit struct { PreState interface{} PostState interface{} // contains filtered or unexported fields }
func (*Edit) ApplyUndoRedo ¶
type History ¶
type History struct {
// contains filtered or unexported fields
}
func NewHistory ¶
func (*History) ClearForward ¶
func (h *History) ClearForward()
type TwoConsecutiveEdits ¶
func LastTwoEdits ¶
func LastTwoEdits(h *History) (*TwoConsecutiveEdits, bool)
Click to show internal directories.
Click to hide internal directories.