[code] [textadept] [PATCH] Fix undefined event in textadept.run.build()

From: João Valverde <joao.valverde.att.tecnico.ulisboa.pt>
Date: Tue, 20 Sep 2016 07:04:30 +0100

Hi,

I think the following patch fixes a bug in Textadept 9.0 beta (undefined
event emitted):

diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index c6d8309..57a7311 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -283,6 +283,7 @@ function M.build(root_directory)
    if not command then return end
    -- Prepare to run the command.
    preferred_view = view
+ local event = events.BUILD_OUTPUT
    local function emit_output(output)
      for line in output:gmatch('[^\r\n]+') do
        events.emit(events.BUILD_OUTPUT, line)

Regards,

JV

-- 
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 Tue 20 Sep 2016 - 02:04:30 EDT

This archive was generated by hypermail 2.2.0 : Tue 20 Sep 2016 - 06:53:41 EDT