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

Method IsNotSaved

texteditor/buffer.go:174–177  ·  view source on GitHub ↗

IsNotSaved returns true if buffer was changed (edited) since last Save.

()

Source from the content-addressed store, hash-verified

172
173// IsNotSaved returns true if buffer was changed (edited) since last Save.
174func (tb *Buffer) IsNotSaved() bool {
175 // note: could use a mutex on this if there are significant race issues
176 return tb.notSaved
177}
178
179// clearNotSaved sets Changed and NotSaved to false.
180func (tb *Buffer) clearNotSaved() {

Callers 2

FileModCheckMethod · 0.95
CloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected