From 04a66e644fd2fa798832932b0963747a00f3254e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 6 Oct 2007 20:54:02 -0400 Subject: The run function uses textadept.print now; modules/lua/commands.lua --- modules/lua/commands.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/lua/commands.lua') diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua index 2b59f171..b5d0c524 100644 --- a/modules/lua/commands.lua +++ b/modules/lua/commands.lua @@ -61,10 +61,9 @@ end -- Executes the current file. function run() local buffer = buffer - local out = io.popen('lua "'..buffer.filename..'" 2>&1'):read('*all') - buffer = textadept.new_buffer() - buffer:set_text('Command output:\n'..out) - buffer:set_save_point() + local cmd = 'lua "'..buffer.filename..'" 2>&1' + local out = io.popen(cmd):read('*all') + textadept.print('> '..cmd..'\n'..out) end -- Lua-specific key commands. -- cgit v1.2.3