diff options
author | 2018-09-10 14:19:19 -0400 | |
---|---|---|
committer | 2018-09-10 14:19:19 -0400 | |
commit | 638130774ecbd81a8438adb61385208f584659ae (patch) | |
tree | f58bab99129f23b8667c542e1703dd7938329080 /core/events.lua | |
parent | 8f1b55bfb7dfe2272d489dc70c745e6125662a0c (diff) | |
download | textadept-638130774ecbd81a8438adb61385208f584659ae.tar.gz textadept-638130774ecbd81a8438adb61385208f584659ae.zip |
Added ability to save/restore persistent data during reset.
Diffstat (limited to 'core/events.lua')
-rw-r--r-- | core/events.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/events.lua b/core/events.lua index b5996baa..98a3475b 100644 --- a/core/events.lua +++ b/core/events.lua @@ -217,9 +217,17 @@ local M = {} -- @field RESET_AFTER (string) -- Emitted after resetting the Lua state. -- Emitted by [`reset()`](). +-- Arguments: +-- +-- * _`persist`_: Table of data persisted by `events.RESET_BEFORE`. All +-- handlers will have access to this same table. -- @field RESET_BEFORE (string) -- Emitted before resetting the Lua state. -- Emitted by [`reset()`](). +-- Arguments: +-- +-- * _`persist`_: Table to store persistent data in for use by +-- `events.RESET_AFTER`. All handlers will have access to this same table. -- @field RESUME (string) -- Emitted when resuming Textadept from a suspended state. -- This event is only emitted by the terminal version. |