diff options
author | 2009-01-14 09:10:50 -0500 | |
---|---|---|
committer | 2009-01-14 09:10:50 -0500 | |
commit | 25632fd3a4ed2219a7c8350dfc0b9807292445be (patch) | |
tree | a3b7bae34a8393b47f5590bad44dcbca49e20700 /modules/lua/commands.lua | |
parent | ff6f00b6f3412141c45a713faf0046846977c91d (diff) | |
download | textadept-25632fd3a4ed2219a7c8350dfc0b9807292445be.tar.gz textadept-25632fd3a4ed2219a7c8350dfc0b9807292445be.zip |
No need for 'run' function for running scripts anymore; modules/lua/commands.lua
Diffstat (limited to 'modules/lua/commands.lua')
-rw-r--r-- | modules/lua/commands.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua index 5e5fbc93..9427e8cc 100644 --- a/modules/lua/commands.lua +++ b/modules/lua/commands.lua @@ -66,17 +66,6 @@ function goto_required() end end ---- --- Executes the current file. -function run() - local buffer = buffer - local cmd = 'lua "'..buffer.filename..'" 2>&1' - local p = io.popen(cmd) - local out = p:read('*all') - p:close() - textadept.print('> '..cmd..'\n'..out) -end - -- Lua-specific key commands. local keys = _G.keys if type(keys) == 'table' then @@ -87,7 +76,6 @@ if type(keys) == 'table' then g = { goto_required }, }, ['s\n'] = { try_to_autocomplete_end }, - cg = { run }, ['('] = { function() buffer.word_chars = |