aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/run.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index c6d83095..07a83e93 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -290,10 +290,10 @@ function M.build(root_directory)
end
-- Run the command.
cwd = working_dir or root_directory
- events.emit(event, '> cd '..cwd)
- events.emit(event, '> '..command:iconv('UTF-8', _CHARSET))
+ events.emit(events.BUILD_OUTPUT, '> cd '..cwd)
+ events.emit(events.BUILD_OUTPUT, '> '..command:iconv('UTF-8', _CHARSET))
proc = assert(spawn(command, cwd, emit_output, emit_output, function(status)
- events.emit(event, '> exit status: '..status)
+ events.emit(events.BUILD_OUTPUT, '> exit status: '..status)
end))
end
events.connect(events.BUILD_OUTPUT, print_output)