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. --- themes/scite/view.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'themes/scite/view.lua') diff --git a/themes/scite/view.lua b/themes/scite/view.lua index ff068f39..86e1c95f 100644 --- a/themes/scite/view.lua +++ b/themes/scite/view.lua @@ -1,7 +1,9 @@ -- Copyright 2007-2009 Mitchell mitchellcaladbolg.net. See LICENSE. -- SciTE editor theme for Textadept. -local buffer, c = buffer, textadept.constants +local textadept = _G.textadept +local c = textadept.constants +local buffer = buffer buffer.margin_width_n[0] = 4 * buffer:text_width(c.STYLE_LINENUMBER, "9") -- cgit v1.2.3