aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/command_entry.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-10-22 23:30:42 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2018-10-22 23:30:42 -0400
commit9bbf8a1d38c31800a0fb70d062c1a728741ab544 (patch)
tree437a7801b627be085528cfc6af47e6f14ec3f6db /modules/textadept/command_entry.lua
parent37c05200f2a9d35477758a12ccbf69e29ad0d17e (diff)
downloadtextadept-9bbf8a1d38c31800a0fb70d062c1a728741ab544.tar.gz
textadept-9bbf8a1d38c31800a0fb70d062c1a728741ab544.zip
Small code cleanup.
Diffstat (limited to 'modules/textadept/command_entry.lua')
-rw-r--r--modules/textadept/command_entry.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua
index ef692eef..214241a4 100644
--- a/modules/textadept/command_entry.lua
+++ b/modules/textadept/command_entry.lua
@@ -166,7 +166,7 @@ args.register('-e', '--execute', 1, run_lua, 'Execute Lua code')
local function complete_lua()
local line, pos = M:get_cur_line()
local symbol, op, part = line:sub(1, pos):match('([%w_.]-)([%.:]?)([%w_]*)$')
- local ok, result = pcall((load('return ('..symbol..')', nil, 'bt', env)))
+ local ok, result = pcall((load('return ('..symbol..')', nil, 't', env)))
if (not ok or type(result) ~= 'table') and symbol ~= '' then return end
local cmpls = {}
part = '^'..part