[code] [textadept] Error in textadept.run.build

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Mon, 12 Sep 2016 12:27:12 +0100

Hi,

textadept.run.build() raises an error because the variable `event` is nil/
undefined.

The following quick fix (copying the initialisation from another function)
seems to make it work:

--- a/ta_releases/textadept_9.0_beta.x86_64/modules/textadept/run.lua
+++ b/ta_releases/textadept_9.0_beta.x86_64/modules/textadept/run.lua
@@ -289,6 +289,8 @@ function M.build(root_directory)
     end
   end
   -- Run the command.
+ local event = commands == M.compile_commands and events.COMPILE_OUTPUT or
+ events.RUN_OUTPUT
   cwd = working_dir or root_directory
   events.emit(event, '> cd '..cwd)
   events.emit(event, '> '..command:iconv('UTF-8', _CHARSET))

Chris

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 12 Sep 2016 - 07:27:12 EDT

This archive was generated by hypermail 2.2.0 : Tue 13 Sep 2016 - 06:31:44 EDT