RemoveBackup removes any backup file associated with this buffer
()
| 146 | |
| 147 | // RemoveBackup removes any backup file associated with this buffer |
| 148 | func (b *SharedBuffer) RemoveBackup() { |
| 149 | if b.keepBackup() || b.Path == "" || b.Type != BTDefault { |
| 150 | return |
| 151 | } |
| 152 | f, resolveName := util.DetermineEscapePath(b.backupDir(), b.AbsPath) |
| 153 | b.removeBackup(f, resolveName) |
| 154 | } |
| 155 | |
| 156 | // ApplyBackup applies the corresponding backup file to this buffer (if one exists) |
| 157 | // Returns true if a backup was applied |
no test coverage detected