AutoSave saves the buffer to its default path
()
| 219 | |
| 220 | // AutoSave saves the buffer to its default path |
| 221 | func (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 |
| 229 | func (b *Buffer) SaveAs(filename string) error { |
no test coverage detected