Re: [code][textadept] select_enclosed()

From: Gabriel Dubatti <gdubatti.att.gmail.com>
Date: Mon, 8 Oct 2018 11:37:57 -0300

Hi Mitchell,

El 08/10/2018 a las 11:11, Mitchell escribi:
> Hi Gabriel,
>
> On Mon, 8 Oct 2018, Gabriel Dubatti wrote:
>
>> Hi Mitchell,
>>
>> I got an error when calling
>> modules/textadept/editing.select_enclosed() @438
>> when no match was found.
>>
>> The error was in the following line:
>>
>> left, right = string.char(char_at[s]), match
>>
>> I moved that line after "if match then" (next line) and the error is
>> gone.
>
> Would you please post your error message as well as some instructions
> for how to trigger the error? I am not able to do so on my end.
>
> Cheers,
> Mitchell

The error is:

C:\textadept\ta10_1/modules/textadept\editing.lua:438: bad argument #1
to 'char' (value out of range)

The shortest text to reproduce the error is just an accented vowel (mine
was inside a comment).

For example:

You must press Ctrl+Shift+M after the letter (could be several lines after).

Cheers,

Gabriel

-- 
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 08 Oct 2018 - 10:37:57 EDT

This archive was generated by hypermail 2.2.0 : Tue 09 Oct 2018 - 06:52:24 EDT