diff options
author | 2009-02-10 10:24:56 -0500 | |
---|---|---|
committer | 2009-02-10 10:24:56 -0500 | |
commit | ddcc45f0615ab6ba776635a15e2183f8d50401a7 (patch) | |
tree | 958e817be2c18db9005db29ddcbdeeb72350d77e /modules/textadept/macros.lua | |
parent | 59c9eb6528d1759bc2734150cb3d99ec2e3eab5b (diff) | |
download | textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.tar.gz textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.zip |
Moved the textadept.locale table into the globals table.
Diffstat (limited to 'modules/textadept/macros.lua')
-rw-r--r-- | modules/textadept/macros.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/textadept/macros.lua b/modules/textadept/macros.lua index 62f9f972..80a89d0f 100644 --- a/modules/textadept/macros.lua +++ b/modules/textadept/macros.lua @@ -1,6 +1,7 @@ -- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept +local locale = _G.locale --- -- Support for recording, saving, and playing macros for the textadept module. @@ -41,7 +42,7 @@ local recording = false local function macro_notification(msg, wParam, lParam) if recording then current[#current + 1] = { msg, wParam or 0, lParam or 0 } - textadept.statusbar_text = textadept.locale.M_TEXTADEPT_MACRO_RECORDING + textadept.statusbar_text = locale.M_TEXTADEPT_MACRO_RECORDING end end textadept.events.add_handler('macro_record', macro_notification) @@ -65,7 +66,6 @@ function stop_recording() if not recording then return end buffer:stop_record() recording = false - local locale = textadept.locale local ret, macro_name = cocoa_dialog('standard-inputbox', { ['informative-text'] = locale.M_TEXTADEPT_MACRO_SAVE_TITLE, @@ -101,7 +101,6 @@ end -- is prompted to choose one from a list of available macros. function play(macro_name) if not macro_name then - local locale = textadept.locale local macros = {} for name, _ in pairs(list) do macros[#macros + 1] = name end if #macros > 0 then |