Re: [code][textadept] select_enclosed()

From: Mitchell <m.att.foicica.com>
Date: Mon, 8 Oct 2018 10:44:35 -0400 (EDT)

Hi Gabriel,

On Mon, 8 Oct 2018, Gabriel Dubatti wrote:

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

Thank you. I've committed the fix[1].

Cheers,
Mitchell

[1]: https://foicica.com/hg/textadept/rev/3063a98bafdb

-- 
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:44:35 EDT

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