aboutsummaryrefslogtreecommitdiff
path: root/modules/lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-10-06 20:54:02 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-10-06 20:54:02 -0400
commit04a66e644fd2fa798832932b0963747a00f3254e (patch)
treed11954508b0d0823d80b5a447f09ab61fe86b282 /modules/lua
parent5852a19d38a84a7cddc717dc5aa64bff0c92bd8f (diff)
downloadtextadept-04a66e644fd2fa798832932b0963747a00f3254e.tar.gz
textadept-04a66e644fd2fa798832932b0963747a00f3254e.zip
The run function uses textadept.print now; modules/lua/commands.lua
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/commands.lua7
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.