batchUpdateStart call this when starting a batch of updates. It calls AutoSaveOff and returns the prior state of that flag which must be restored using BatchUpdateEnd.
()
| 669 | // It calls AutoSaveOff and returns the prior state of that flag |
| 670 | // which must be restored using BatchUpdateEnd. |
| 671 | func (tb *Buffer) batchUpdateStart() (autoSave bool) { |
| 672 | tb.Undos.NewGroup() |
| 673 | autoSave = tb.autoSaveOff() |
| 674 | return |
| 675 | } |
| 676 | |
| 677 | // batchUpdateEnd call to complete BatchUpdateStart |
| 678 | func (tb *Buffer) batchUpdateEnd(autoSave bool) { |
no test coverage detected