diff options
author | 2009-02-10 10:24:56 -0500 | |
---|---|---|
committer | 2009-02-10 10:24:56 -0500 | |
commit | ddcc45f0615ab6ba776635a15e2183f8d50401a7 (patch) | |
tree | 958e817be2c18db9005db29ddcbdeeb72350d77e /core/ext/pm/file_browser.lua | |
parent | 59c9eb6528d1759bc2734150cb3d99ec2e3eab5b (diff) | |
download | textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.tar.gz textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.zip |
Moved the textadept.locale table into the globals table.
Diffstat (limited to 'core/ext/pm/file_browser.lua')
-rw-r--r-- | core/ext/pm/file_browser.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/ext/pm/file_browser.lua b/core/ext/pm/file_browser.lua index 8aa6cf96..45c1db4c 100644 --- a/core/ext/pm/file_browser.lua +++ b/core/ext/pm/file_browser.lua @@ -1,6 +1,7 @@ -- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept +local locale = _G.locale --- -- File browser for the Textadept project manager. @@ -48,7 +49,6 @@ end local ID = { CHANGE_DIR = 1, FILE_INFO = 2 } function get_context_menu(selected_item) - local locale = textadept.locale return { { 'separator', 0 }, -- make it harder to click 'Change Directory' by mistake { locale.PM_BROWSER_FILE_CD, ID.CHANGE_DIR }, @@ -57,7 +57,6 @@ function get_context_menu(selected_item) end function perform_menu_action(menu_id, selected_item) - local locale = textadept.locale local filepath = table.concat(selected_item, '/') if menu_id == ID.CHANGE_DIR then textadept.pm.entry_text = filepath |