AutoSave autoSaveOff turns off autosave and returns the prior state of Autosave flag. Call AutoSaveRestore with rval when done. See BatchUpdate methods for auto-use of this.
()
| 551 | // Call AutoSaveRestore with rval when done. |
| 552 | // See BatchUpdate methods for auto-use of this. |
| 553 | func (tb *Buffer) autoSaveOff() bool { |
| 554 | asv := tb.Autosave |
| 555 | tb.Autosave = false |
| 556 | return asv |
| 557 | } |
| 558 | |
| 559 | // autoSaveRestore restores prior Autosave setting, |
| 560 | // from AutoSaveOff |