MCPcopy
hub / github.com/micro-editor/micro / UndoTextEvent

Method UndoTextEvent

internal/buffer/eventhandler.go:139–142  ·  view source on GitHub ↗

UndoTextEvent undoes a text event

(t *TextEvent)

Source from the content-addressed store, hash-verified

137
138// UndoTextEvent undoes a text event
139func (eh *EventHandler) UndoTextEvent(t *TextEvent) {
140 t.EventType = -t.EventType
141 eh.DoTextEvent(t, false)
142}
143
144// EventHandler executes text manipulations and allows undoing and redoing
145type EventHandler struct {

Callers 2

UndoOneEventMethod · 0.95
RedoOneEventMethod · 0.95

Calls 1

DoTextEventMethod · 0.95

Tested by

no test coverage detected