aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/lsnippets.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-10 10:24:56 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-10 10:24:56 -0500
commitddcc45f0615ab6ba776635a15e2183f8d50401a7 (patch)
tree958e817be2c18db9005db29ddcbdeeb72350d77e /modules/textadept/lsnippets.lua
parent59c9eb6528d1759bc2734150cb3d99ec2e3eab5b (diff)
downloadtextadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.tar.gz
textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.zip
Moved the textadept.locale table into the globals table.
Diffstat (limited to 'modules/textadept/lsnippets.lua')
-rw-r--r--modules/textadept/lsnippets.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/textadept/lsnippets.lua b/modules/textadept/lsnippets.lua
index c0cfab20..b8499fbb 100644
--- a/modules/textadept/lsnippets.lua
+++ b/modules/textadept/lsnippets.lua
@@ -1,6 +1,7 @@
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
+local locale = _G.locale
---
-- Provides Lua-centric snippets for Textadept.
@@ -352,8 +353,8 @@ function show_style()
local style_num = buffer.style_at[buffer.current_pos]
local style = buffer:get_style_name(style_num)
local text =
- string.format(textadept.locale.M_TEXTADEPT_SNIPPETS_SHOW_STYLE, lexer,
- style, style_num)
+ string.format(locale.M_TEXTADEPT_SNIPPETS_SHOW_STYLE, lexer, style,
+ style_num)
buffer:call_tip_show(buffer.current_pos, text)
end