Fini should be called when a buffer is closed and performs some cleanup
()
| 524 | // Fini should be called when a buffer is closed and performs |
| 525 | // some cleanup |
| 526 | func (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 |