aboutsummaryrefslogtreecommitdiff
path: root/modules/lua
diff options
context:
space:
mode:
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.