diff options
author | 2009-02-10 10:24:56 -0500 | |
---|---|---|
committer | 2009-02-10 10:24:56 -0500 | |
commit | ddcc45f0615ab6ba776635a15e2183f8d50401a7 (patch) | |
tree | 958e817be2c18db9005db29ddcbdeeb72350d77e /modules/textadept/snippets.lua | |
parent | 59c9eb6528d1759bc2734150cb3d99ec2e3eab5b (diff) | |
download | textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.tar.gz textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.zip |
Moved the textadept.locale table into the globals table.
Diffstat (limited to 'modules/textadept/snippets.lua')
-rw-r--r-- | modules/textadept/snippets.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 mitchell<att>caladbolg.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 |