MCPcopy Create free account
hub / github.com/cogentcore/core / redo

Method redo

texteditor/buffer.go:839–847  ·  view source on GitHub ↗

redo redoes next group of items on the undo stack, and returns the last record, nil if no more

()

Source from the content-addressed store, hash-verified

837// redo redoes next group of items on the undo stack,
838// and returns the last record, nil if no more
839func (tb *Buffer) redo() []*text.Edit {
840 autoSave := tb.batchUpdateStart()
841 defer tb.batchUpdateEnd(autoSave)
842 tbe := tb.Lines.Redo()
843 if tbe != nil {
844 tb.signalMods()
845 }
846 return tbe
847}
848
849/////////////////////////////////////////////////////////////////////////////
850// LineColors

Callers

nothing calls this directly

Calls 4

batchUpdateStartMethod · 0.95
batchUpdateEndMethod · 0.95
signalModsMethod · 0.95
RedoMethod · 0.45

Tested by

no test coverage detected