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

Method AutoSave

internal/buffer/save.go:221–226  ·  view source on GitHub ↗

AutoSave saves the buffer to its default path

()

Source from the content-addressed store, hash-verified

219
220// AutoSave saves the buffer to its default path
221func (b *Buffer) AutoSave() error {
222 if !b.Modified() {
223 return nil
224 }
225 return b.saveToFile(b.Path, false, true)
226}
227
228// SaveAs saves the buffer to a specified path (filename), creating the file if it does not exist
229func (b *Buffer) SaveAs(filename string) error {

Callers 1

DoEventFunction · 0.80

Calls 2

ModifiedMethod · 0.95
saveToFileMethod · 0.95

Tested by

no test coverage detected