aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/command_entry.lua2
-rw-r--r--modules/textadept/menu.lua2
2 files changed, 2 insertions, 2 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
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 759452aa..55c97ce4 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -20,7 +20,7 @@ local SEPARATOR = {''}
local menu_buffer_functions = {
'undo', 'redo', 'cut', 'copy', 'paste', 'line_duplicate', 'clear',
'select_all', 'upper_case', 'lower_case', 'move_selected_lines_up',
- 'move_selected_lines_down', 'zoom_in', 'zoom_out', 'colourise'
+ 'move_selected_lines_down', 'zoom_in', 'zoom_out'
}
for i = 1, #menu_buffer_functions do
buffer[menu_buffer_functions[i]] = buffer[menu_buffer_functions[i]]