From e192e73a92eb896f9c8623d11a8c49ebbcb4c291 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 24 Jun 2011 17:41:51 -0400 Subject: Removed '_G' prefix from globals where necessary. --- modules/textadept/find.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/textadept/find.lua') 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 mitchellcaladbolg.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. -- cgit v1.2.3