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

Method Fini

internal/buffer/buffer.go:526–535  ·  view source on GitHub ↗

Fini should be called when a buffer is closed and performs some cleanup

()

Source from the content-addressed store, hash-verified

524// Fini should be called when a buffer is closed and performs
525// some cleanup
526func (b *Buffer) Fini() {
527 if !b.Modified() {
528 b.Serialize()
529 }
530 b.CancelBackup()
531
532 if b.Type == BTStdout {
533 fmt.Fprint(util.Stdout, string(b.Bytes()))
534 }
535}
536
537// GetName returns the name that should be displayed in the statusline
538// for this buffer

Callers 9

CloseMethod · 0.95
ForceQuitMethod · 0.80
QuitAllMethod · 0.80
QuitMethod · 0.80
TempFiniFunction · 0.80
CloseOpenBuffersFunction · 0.80
startupFunction · 0.80
exitFunction · 0.80
mainFunction · 0.80

Calls 4

ModifiedMethod · 0.95
SerializeMethod · 0.95
CancelBackupMethod · 0.80
BytesMethod · 0.80

Tested by 1

startupFunction · 0.64