From bd55d676f133a5b38ca53c33bf599d66dfe1fc87 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 31 Dec 2011 18:00:19 -0500 Subject: Changed 'locale.localize()' to global '_L' table. --- modules/textadept/editing.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'modules/textadept/editing.lua') diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index c39d699a..6128e320 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -1,9 +1,5 @@ -- Copyright 2007-2011 Mitchell mitchellcaladbolg.net. See LICENSE. -local L = locale.localize -local events = events -local K = keys.KEYSYMS - local M = {} --[[ This comment is for LuaDoc. @@ -75,6 +71,9 @@ M.braces = { [40] = 1, [41] = 1, [91] = 1, [93] = 1, [123] = 1, [125] = 1 } -- @name current_call_tip local current_call_tip = {} +local events = events +local K = keys.KEYSYMS + -- Matches characters specified in char_matches. events.connect(events.CHAR_ADDED, function(c) if not M.AUTOPAIR then return end @@ -255,8 +254,8 @@ end function M.goto_line(line) if not line then line = tonumber(gui.dialog('standard-inputbox', - '--title', L('Go To'), - '--text', L('Line Number:'), + '--title', _L['Go To'], + '--text', _L['Line Number:'], '--no-newline'):match('%-?%d+$')) if not line or line < 0 then return end end -- cgit v1.2.3