From ac698c5ea71d26e56289a18e664c6f8be1aa56c5 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 10 Jan 2009 17:31:21 -0500 Subject: Various improvements to speed and readability of Lua code. Added 'local textadept = _G.textadept' to all Lua modules, themes, etc. Added more locals to core/ext/keys.lua for speed improvement. Reformatted some Lua modules to the earlier standard committed. --- core/ext/menu.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/ext/menu.lua') diff --git a/core/ext/menu.lua b/core/ext/menu.lua index e7f57d5a..3398f47e 100644 --- a/core/ext/menu.lua +++ b/core/ext/menu.lua @@ -1,11 +1,15 @@ -- Copyright 2007-2009 Mitchell mitchellcaladbolg.net. See LICENSE. +local textadept = _G.textadept + --- -- Provides dynamic menus for Textadept. -- This module, like ext/key_commands, should be 'require'ed last. module('textadept.menu', package.seeall) -local t, gtkmenu, l = textadept, textadept.gtkmenu, textadept.locale +local t = textadept +local l = textadept.locale +local gtkmenu = textadept.gtkmenu local SEPARATOR = 'separator' local ID = { -- cgit v1.2.3