From ddcc45f0615ab6ba776635a15e2183f8d50401a7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 10 Feb 2009 10:24:56 -0500 Subject: Moved the textadept.locale table into the globals table. --- modules/textadept/snippets.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/textadept/snippets.lua') diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index d9d40f71..b0fad9d3 100644 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -1,6 +1,7 @@ -- Copyright 2007-2009 Mitchell mitchellcaladbolg.net. See LICENSE. local textadept = _G.textadept +local locale = _G.locale --- -- Provides Textmate-like snippets for the textadept module. @@ -368,8 +369,8 @@ function show_scope() local lexer = buffer:get_lexer_language() local scope = buffer.style_at[buffer.current_pos] 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 -- cgit v1.2.3