Documentation ¶
Index ¶
- type Edits
- type HList
- func (hl *HList) Append(edits *Edits, maxLen int)
- func (hl *HList) Clear()
- func (hl *HList) ClearUndones()
- func (hl *HList) DoneBack() *list.Element
- func (hl *HList) NDoneBack(n int) ([]*Edits, []*list.Element)
- func (hl *HList) Redo(peek bool) (*Edits, bool)
- func (hl *HList) Undo(peek bool) (*Edits, bool)
- type History
- type RWUndo
- type UndoRedo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edits ¶
type Edits struct {
// contains filtered or unexported fields
}
func (*Edits) MergeEdits ¶
func (*Edits) WriteUndoRedo ¶
type HList ¶
type HList struct {
// contains filtered or unexported fields
}
func (*HList) ClearUndones ¶
func (hl *HList) ClearUndones()
type History ¶
type History struct {
// contains filtered or unexported fields
}
func NewHistory ¶
func (*History) BeginUndoGroup ¶
func (h *History) BeginUndoGroup(c rwedit.SimpleCursor)
func (*History) ClearUndones ¶
func (h *History) ClearUndones()
func (*History) EndUndoGroup ¶
func (h *History) EndUndoGroup(c rwedit.SimpleCursor)
type RWUndo ¶
type RWUndo struct { iorw.ReadWriterAt History *History }
type UndoRedo ¶
type UndoRedo struct { Index int D []byte // deleted bytes of the original op I []byte // inserted bytes of the original op }
func NewUndoRedoOverwrite ¶
func (*UndoRedo) IsDeleteOnly ¶
func (*UndoRedo) IsInsertOnly ¶
Click to show internal directories.
Click to hide internal directories.