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

Method batchUpdateStart

texteditor/buffer.go:671–675  ·  view source on GitHub ↗

batchUpdateStart call this when starting a batch of updates. It calls AutoSaveOff and returns the prior state of that flag which must be restored using BatchUpdateEnd.

()

Source from the content-addressed store, hash-verified

669// It calls AutoSaveOff and returns the prior state of that flag
670// which must be restored using BatchUpdateEnd.
671func (tb *Buffer) batchUpdateStart() (autoSave bool) {
672 tb.Undos.NewGroup()
673 autoSave = tb.autoSaveOff()
674 return
675}
676
677// batchUpdateEnd call to complete BatchUpdateStart
678func (tb *Buffer) batchUpdateEnd(autoSave bool) {

Callers 8

undoMethod · 0.95
redoMethod · 0.95
indentLineMethod · 0.95
AutoIndentRegionMethod · 0.95
CommentRegionMethod · 0.95
JoinParaLinesMethod · 0.95
TabsToSpacesMethod · 0.95
SpacesToTabsMethod · 0.95

Calls 2

autoSaveOffMethod · 0.95
NewGroupMethod · 0.80

Tested by

no test coverage detected