diff options
author | 2007-10-06 20:54:02 -0400 | |
---|---|---|
committer | 2007-10-06 20:54:02 -0400 | |
commit | 04a66e644fd2fa798832932b0963747a00f3254e (patch) | |
tree | d11954508b0d0823d80b5a447f09ab61fe86b282 /modules/lua/commands.lua | |
parent | 5852a19d38a84a7cddc717dc5aa64bff0c92bd8f (diff) | |
download | textadept-04a66e644fd2fa798832932b0963747a00f3254e.tar.gz textadept-04a66e644fd2fa798832932b0963747a00f3254e.zip |
The run function uses textadept.print now; modules/lua/commands.lua
Diffstat (limited to 'modules/lua/commands.lua')
-rw-r--r-- | modules/lua/commands.lua | 7 |
1 files changed, 3 insertions, 4 deletions
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. |