diff options
author | 2018-10-22 23:30:42 -0400 | |
---|---|---|
committer | 2018-10-22 23:30:42 -0400 | |
commit | 9bbf8a1d38c31800a0fb70d062c1a728741ab544 (patch) | |
tree | 437a7801b627be085528cfc6af47e6f14ec3f6db /modules/textadept/command_entry.lua | |
parent | 37c05200f2a9d35477758a12ccbf69e29ad0d17e (diff) | |
download | textadept-9bbf8a1d38c31800a0fb70d062c1a728741ab544.tar.gz textadept-9bbf8a1d38c31800a0fb70d062c1a728741ab544.zip |
Small code cleanup.
Diffstat (limited to 'modules/textadept/command_entry.lua')
-rw-r--r-- | modules/textadept/command_entry.lua | 2 |
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 |