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/key_commands.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'core/ext/key_commands.lua') diff --git a/core/ext/key_commands.lua b/core/ext/key_commands.lua index 6e3f0145..25c7c239 100644 --- a/core/ext/key_commands.lua +++ b/core/ext/key_commands.lua @@ -1,5 +1,7 @@ -- Copyright 2007-2009 Mitchell mitchellcaladbolg.net. See LICENSE. +local textadept = _G.textadept + --- -- Defines the key commands used by the Textadept key command manager. -- For non-ascii keys, see textadept.keys for string aliases. @@ -14,12 +16,7 @@ module('textadept.key_commands', package.seeall) CSA: C D G H J K L O Q R S T U W X Z ]]-- ---- --- Global container that holds all key commands. --- @class table --- @name keys -_G.keys = {} -local keys = keys +local keys = _G.keys keys.clear_sequence = 'esc' -- cgit v1.2.3