history

package
Version: v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

type History struct {
	// contains filtered or unexported fields
}

History manages the buffer history.

func NewHistory

func NewHistory() *History

NewHistory creates a new history manager.

func (*History) Push

func (h *History) Push(buffer *buffer.Buffer, offset int64, cursor int64, tick uint64)

Push a new buffer to the history.

func (*History) Redo

func (h *History) Redo() (*buffer.Buffer, int64, int64, uint64)

Redo the history.

func (*History) Undo

func (h *History) Undo() (*buffer.Buffer, int, int64, int64, uint64)

Undo the history.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL