From 9bbf8a1d38c31800a0fb70d062c1a728741ab544 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 22 Oct 2018 23:30:42 -0400 Subject: Small code cleanup. --- modules/textadept/command_entry.lua | 2 +- modules/textadept/menu.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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]] -- cgit v1.2.3