From 8527adcebc33243664bcb2b19d63ac6a66e584be Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 24 Jun 2013 15:33:41 -0400 Subject: Removed `_G.RESETTING`; test for `arg` instead. --- core/init.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'core/init.lua') diff --git a/core/init.lua b/core/init.lua index f4b96961..83c6bed5 100644 --- a/core/init.lua +++ b/core/init.lua @@ -35,9 +35,6 @@ if jit then module, package.searchers, bit32 = nil, package.loaders, bit end -- @field _CHARSET (string) -- The character set encoding of the filesystem. -- This is used when [working with files](io.html). --- @field RESETTING (bool) --- If [`reset()`](#reset) has been called, this flag is `true` while the Lua --- state is being re-initialized. -- @field WIN32 (bool) -- If Textadept is running on Windows, this flag is `true`. -- @field OSX (bool) @@ -108,11 +105,10 @@ local quit -- files that use them will reload those modules instead. -- This function is useful for modifying user scripts (such as -- *~/.textadept/init.lua* and *~/.textadept/modules/textadept/keys.lua*) on --- the fly without having to restart Textadept. `_G.RESETTING` is set to `true` --- when re-initing the Lua State. Any scripts that need to differentiate between --- startup and reset can utilize this variable. +-- the fly without having to restart Textadept. `arg` is set to `nil` when +-- reinitializing the Lua State. Any scripts that need to differentiate between +-- startup and reset can test `arg`. -- @class function --- @see RESETTING -- @name reset local reset -- cgit v1.2.3