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

From: Mitchell <m.att.foicica.com>
Date: Tue, 20 Sep 2016 09:16:48 -0400 (EDT)

Hi João,

On Tue, 20 Sep 2016, João Valverde wrote:

> 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)

Thanks, this was reported earlier and fixed[1] in a nightly.

Cheers,
Mitchell

[1]: https://foicica.com/hg/textadept/rev/367d7c6e71f7

-- 
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 - 09:16:48 EDT

This archive was generated by hypermail 2.2.0 : Wed 21 Sep 2016 - 06:25:17 EDT