end_transaction
Commit the transaction opened by begin_transaction, merging all edits inside it into one undo entry on the editor's stack. Use cancel to discard instead.
Instructions
Close the transaction opened by begin_transaction and COMMIT it, so everything done inside becomes one entry on the editor's undo stack (undo_count grows by one). Pair it with every begin_transaction -- leaving one open makes later edits silently join it. Use cancel_transaction instead when you want the batch thrown away rather than kept.
Returns: { success: bool, transaction_index: int (the one that was closed), undo_count: int after the commit }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||