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. --- modules/textadept/editing.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/textadept/editing.lua') diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 47166cf5..069135b2 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -1,5 +1,7 @@ -- Copyright 2007-2009 Mitchell mitchellcaladbolg.net. See LICENSE. +local textadept = _G.textadept + --- -- Editing commands for the textadept module. module('_m.textadept.editing', package.seeall) @@ -232,7 +234,8 @@ end -- Goes to the requested line. -- @param line Optional line number to go to. function goto_line(line) - local buffer, locale = buffer, textadept.locale + local buffer = buffer + local locale = textadept.locale if not line then line = cocoa_dialog('standard-inputbox', { -- cgit v1.2.3