AutoSaveCheck checks if an autosave file exists; logic for dealing with it is left to larger app; call this before opening a file.
()
| 601 | // AutoSaveCheck checks if an autosave file exists; logic for dealing with |
| 602 | // it is left to larger app; call this before opening a file. |
| 603 | func (tb *Buffer) AutoSaveCheck() bool { |
| 604 | asfn := tb.AutoSaveFilename() |
| 605 | if _, err := os.Stat(asfn); os.IsNotExist(err) { |
| 606 | return false // does not exist |
| 607 | } |
| 608 | return true |
| 609 | } |
| 610 | |
| 611 | ///////////////////////////////////////////////////////////////////////////// |
| 612 | // Appending Lines |
nothing calls this directly
no test coverage detected