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

Method clearNotSaved

texteditor/buffer.go:180–183  ·  view source on GitHub ↗

clearNotSaved sets Changed and NotSaved to false.

()

Source from the content-addressed store, hash-verified

178
179// clearNotSaved sets Changed and NotSaved to false.
180func (tb *Buffer) clearNotSaved() {
181 tb.SetChanged(false)
182 tb.notSaved = false
183}
184
185// Init initializes the buffer. Called automatically in SetText.
186func (tb *Buffer) Init() {

Callers 3

RevertMethod · 0.95
saveFileMethod · 0.95
CloseMethod · 0.95

Calls 1

SetChangedMethod · 0.80

Tested by

no test coverage detected