diff options
author | 2011-06-24 17:41:51 -0400 | |
---|---|---|
committer | 2011-06-24 17:41:51 -0400 | |
commit | e192e73a92eb896f9c8623d11a8c49ebbcb4c291 (patch) | |
tree | 7c09774b3fa143126e8373c2a0c3d901f3e7273c /modules/textadept/find.lua | |
parent | 282c7dd9fe5c903a4620d41c9498153e83867119 (diff) | |
download | textadept-e192e73a92eb896f9c8623d11a8c49ebbcb4c291.tar.gz textadept-e192e73a92eb896f9c8623d11a8c49ebbcb4c291.zip |
Removed '_G' prefix from globals where necessary.
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r-- | modules/textadept/find.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index 4010a5d6..a4298d67 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -1,7 +1,7 @@ -- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -local L = _G.locale.localize -local events = _G.events +local L = locale.localize +local events = events local find = gui.find local c = _SCINTILLA.constants @@ -165,7 +165,7 @@ function find.find_incremental() end events.connect(events.COMMAND_ENTRY_KEYPRESS, function(code) - local K = _G.keys.KEYSYMS + local K = keys.KEYSYMS if find.incremental then if K[code] == 'esc' then find.incremental = nil @@ -190,8 +190,8 @@ events.connect(events.COMMAND_ENTRY_COMMAND, function(text) end, 1) -- place before command_entry.lua's handler (if necessary) -- Optimize for speed. -local loadstring = _G.loadstring -local pcall = _G.pcall +local loadstring = loadstring +local pcall = pcall -- Runs the given code. -- This function is passed to string.gsub() in the replace() function. |