aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/command_entry.lua
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-14 14:53:19 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-14 14:53:19 -0400
commit8ff320ad70a5183acc2bd635dfef33a792bd7f5a (patch)
treeb44b3debb1f52857aaafab7f499a978c2686e170 /modules/textadept/command_entry.lua
parent61f0475bbacbe0d1c1492c5be6510fc144d3926f (diff)
downloadtextadept-8ff320ad70a5183acc2bd635dfef33a792bd7f5a.tar.gz
textadept-8ff320ad70a5183acc2bd635dfef33a792bd7f5a.zip
Addressed some minor Luacheck issues.
Not all shadowing warnings need to be fixed.
Diffstat (limited to 'modules/textadept/command_entry.lua')
-rw-r--r--modules/textadept/command_entry.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index cecad02c..c1dddc5e 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -163,10 +163,10 @@ local function complete_lua()
local global_envs = not ok and
{buffer, view, ui, _G, textadept, sci.functions, sci.properties, sci.constants} or op == ':' and
{sci.functions} or {sci.properties, sci.constants}
- for _, env in ipairs(global_envs) do
- for k, v in pairs(env) do
+ for _, t in ipairs(global_envs) do
+ for k, v in pairs(t) do
if type(k) ~= 'string' or not k:find(part) then goto continue end
- local xpm = (type(v) == 'function' or env == sci.functions) and XPM.METHOD or XPM.VARIABLE
+ local xpm = (type(v) == 'function' or t == sci.functions) and XPM.METHOD or XPM.VARIABLE
cmpls[#cmpls + 1] = k .. sep .. xpm
::continue::
end