aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-09-12 12:46:43 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2016-09-12 12:46:43 -0400
commit3368b8c11fd15798fc1eac0f5b5a20f643345997 (patch)
treef1e239c56f8d493d86c0308407e3d2a085bfb782 /modules/textadept/run.lua
parent3797ae30ccbf7cd80835b65cbc97ad7d9d5468ff (diff)
downloadtextadept-3368b8c11fd15798fc1eac0f5b5a20f643345997.tar.gz
textadept-3368b8c11fd15798fc1eac0f5b5a20f643345997.zip
Fixed error building projects; modules/textadept/run.lua
Diffstat (limited to 'modules/textadept/run.lua')
-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)