From 25632fd3a4ed2219a7c8350dfc0b9807292445be Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 14 Jan 2009 09:10:50 -0500 Subject: No need for 'run' function for running scripts anymore; modules/lua/commands.lua --- modules/lua/commands.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'modules') 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 = -- cgit v1.2.3