aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-12-31 18:00:19 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-12-31 18:00:19 -0500
commitbd55d676f133a5b38ca53c33bf599d66dfe1fc87 (patch)
tree369c9cfa6fe5e32eeb3bc89d0a86d3c8def57044 /modules/textadept/editing.lua
parentae8dddf78ef5b07f4d64471d8f6800746373af6e (diff)
downloadtextadept-bd55d676f133a5b38ca53c33bf599d66dfe1fc87.tar.gz
textadept-bd55d676f133a5b38ca53c33bf599d66dfe1fc87.zip
Changed 'locale.localize()' to global '_L' table.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r--modules/textadept/editing.lua11
1 files changed, 5 insertions, 6 deletions
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 mitchell<att>caladbolg.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