diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/._G.luadoc | 2 | ||||
-rw-r--r-- | core/args.lua | 2 | ||||
-rw-r--r-- | core/events.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/._G.luadoc b/core/._G.luadoc index dfac3e30..94c6dfa4 100644 --- a/core/._G.luadoc +++ b/core/._G.luadoc @@ -19,7 +19,7 @@ module('_G') -- * `RESETTING`: If [`reset()`][reset] has been called, -- this flag is `true` while the Lua state is being re-initialized. -- * `WIN32`: If Textadept is running on Windows, this flag is `true`. --- * `MAC`: If Textadept is running on Mac OSX, this flag is `true`. +-- * `OSX`: If Textadept is running on Mac OSX, this flag is `true`. -- -- [package_path]: http://www.lua.org/manual/5.1/manual.html#pdf-package.path -- [theme]: ../manual/6_Startup.html diff --git a/core/args.lua b/core/args.lua index d145008d..c7027e0d 100644 --- a/core/args.lua +++ b/core/args.lua @@ -72,7 +72,7 @@ if WIN32 and #arg[0] > 0 then end -- For Mac, remove junk parameter if necessary. -if MAC and arg[1] and arg[1]:find('^%-psn_0') then table.remove(arg, 1) end +if OSX and arg[1] and arg[1]:find('^%-psn_0') then table.remove(arg, 1) end -- Set _G._USERHOME. local userhome = os.getenv(not WIN32 and 'HOME' or 'USERPROFILE')..'/.textadept' diff --git a/core/events.lua b/core/events.lua index a7068dcd..2157f58d 100644 --- a/core/events.lua +++ b/core/events.lua @@ -427,7 +427,7 @@ connect('quit', return true end) -if MAC then +if OSX then connect('appleevent_odoc', function(uri) return emit('uri_dropped', 'file://'..uri) end) |